rendered paste body#!/bin/bash
#
# derobert's script, modified to run on the old non-fakeroot system
#
set -e
# Ok, we're running under fakeroot. Start building.
set -v
pushd osd >/dev/null
echo "# Step 1: Neuros BSP. Substep (a), the rootfs"
pushd neuros-bsp >/dev/null
if ! [ -e rootfs/fs ]; then
./setup-rootfs
else
echo "## Already there, not doing anything"
fi
echo "# 1(b), source the environment"
set +v
source neuros-env
set -v
echo "# 1(c), default config"
if ! [ -e .config/bsp_config ]; then
make ntosd-dm320_defconfig
else
echo "## Already there, not doing anything"
fi
echo "# 1(d), build"
make -j3
make -j3 install
popd > /dev/null
echo "# Step 2, Nano-X"
pushd Nano-X/src > /dev/null
echo "# 2(a), contrib/jpeg"
pushd contrib/jpeg > /dev/null
if ! [ -e config.status ]; then
./Neuros-config
else
echo "## Already there, not doing anything"
fi
./Neuros-make
popd > /dev/null
echo "# 2(b), freetype1"
pushd contrib/freetype1 > /dev/null
if [ -e config.cache.0210a ]; then
echo "# mgao left some cruft in svn, remove it."
rm -f config.cache.* config.log config.status
fi
if ! [ -e config.status ]; then
./Neuros-config
else
echo "## Already there, not doing anything"
fi
./Neuros-make
popd > /dev/null
echo "# 2(c), nano-x"
make
popd > /dev/null
echo "# Step 3, the plugins"
pushd linux-r3-plugins > /dev/null
echo "# 3(a), AV plugins"
pushd av/build > /dev/null
make install
popd > /dev/null
echo "# 3(b), I18N plugins"
#~ pushd i18n/build > /dev/null
#~ make all
#~ make install
#~ popd > /dev/null
popd > /dev/null
echo "# Step 4, Neuros-Cooler"
pushd Neuros-Cooler/build > /dev/null
make cleanall
make all
make install
popd > /dev/null
echo "# Step 5, the main app"
#
# BUG: Main app installs in the wrong location (in ~/neuros-bsp)
#
pushd linux-r3-main-app/build > /dev/null
make all
make install
popd > /dev/null
echo "# Step 6, the external programs"
#pushd external > /dev/null
#make
#popd > /dev/null
echo "# ALL DONE !"
popd > /dev/null
set +v