summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbootstrap-stage2-install.sh30
-rwxr-xr-xbootstrap-stage2-test.sh15
2 files changed, 45 insertions, 0 deletions
diff --git a/bootstrap-stage2-install.sh b/bootstrap-stage2-install.sh
index e288bf8..2c001ae 100755
--- a/bootstrap-stage2-install.sh
+++ b/bootstrap-stage2-install.sh
@@ -89,6 +89,21 @@ install_packages()
../root1/usr/src/*_all_all.opk; do
[ -f "${opk}" ] || continue
pkg="${opk#../root1/usr/src/}"
+ case "${pkg}" in
+ "build-essential-${ARCH}_"*) ;;
+ 'build-essential-common_'*) ;;
+ 'build-essential-'*) continue ;;
+ "gcc-${ARCH}_"*) ;;
+ "gcc-"*"-${ARCH}_"*) ;;
+ 'gcc-'*'-common_'*) ;;
+ 'gcc-'*'-locales_'*) ;;
+ 'gcc-'*) continue ;;
+ "g++-${ARCH}_"*) ;;
+ "g++-"*"-${ARCH}_"*) ;;
+ 'g++-'*'-common_'*) ;;
+ 'g++-'*'-locales_'*) ;;
+ 'g++-'*) continue ;;
+ esac
log 'Installing package %s...' "${pkg%%_*}"
tar -xzOf "${opk}" data.tar.gz | tar -xz
done
@@ -128,6 +143,21 @@ configure_packages()
../root1/usr/src/*_all_all.opk; do
[ -f "${opk}" ] || continue
pkg="${opk#../root1/usr/src/}"
+ case "${pkg}" in
+ "build-essential-${ARCH}_"*) ;;
+ 'build-essential-common_'*) ;;
+ 'build-essential-'*) continue ;;
+ "gcc-${ARCH}_"*) ;;
+ "gcc-"*"-${ARCH}_"*) ;;
+ 'gcc-'*'-common_'*) ;;
+ 'gcc-'*'-locales_'*) ;;
+ 'gcc-'*) continue ;;
+ "g++-${ARCH}_"*) ;;
+ "g++-"*"-${ARCH}_"*) ;;
+ 'g++-'*'-common_'*) ;;
+ 'g++-'*'-locales_'*) ;;
+ 'g++-'*) continue ;;
+ esac
pkg="${pkg%%_*}"
for entry in $(tar -xzOf "${opk}" control.tar.gz | tar -tz); do
file="${entry##*/}"
diff --git a/bootstrap-stage2-test.sh b/bootstrap-stage2-test.sh
index dd68aac..8596c57 100755
--- a/bootstrap-stage2-test.sh
+++ b/bootstrap-stage2-test.sh
@@ -76,6 +76,21 @@ test_packages()
../root1/usr/src/*_all_${PLAT}.opk \
../root1/usr/src/*_all_all.opk; do
[ -f "${opk}" ] || continue
+ case "${opk#../root1/usr/src/}" in
+ "build-essential-${ARCH}_"*) ;;
+ 'build-essential-common_'*) ;;
+ 'build-essential-'*) continue ;;
+ "gcc-${ARCH}_"*) ;;
+ "gcc-"*"-${ARCH}_"*) ;;
+ 'gcc-'*'-common_'*) ;;
+ 'gcc-'*'-locales_'*) ;;
+ 'gcc-'*) continue ;;
+ "g++-${ARCH}_"*) ;;
+ "g++-"*"-${ARCH}_"*) ;;
+ 'g++-'*'-common_'*) ;;
+ 'g++-'*'-locales_'*) ;;
+ 'g++-'*) continue ;;
+ esac
cp "${opk}" .
done
sudo chroot . sh -c 'opkg install /*.opk'