From 4c344031ef2d93465bf72d132ee8c3fcb61d886b Mon Sep 17 00:00:00 2001 From: Al Stone Date: Sat, 17 Nov 2012 14:53:28 -0700 Subject: aarch64: clean up busybox so it boots properly Signed-off-by: Al Stone --- stage1 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/stage1 b/stage1 index f49cd91..d78ede7 100755 --- a/stage1 +++ b/stage1 @@ -941,6 +941,11 @@ EOF make busybox CROSS_COMPILE=${TARGET}- make install CONFIG_PREFIX=${ROOTFS} + # add in an password file for cleaniness (even if it has no passwd) + ( + echo "root::0:0:root:/:/bin/bash" + ) > $ROOTFS/etc/passwd + # add in some basic mount points [ -d ${ROOTFS}/proc ] || mkdir ${ROOTFS}/proc [ -d ${ROOTFS}/sys ] || mkdir ${ROOTFS}/sys @@ -948,10 +953,10 @@ EOF echo "proc /proc proc defaults 0 0" echo "sysfs /sys sysfs defaults 0 0" ) > $ROOTFS/etc/fstab + touch $ROOTFS/etc/mtab # and a place holder for other useful initializations [ -d ${ROOTFS}/etc/init.d ] || mkdir -p ${ROOTFS}/etc/init.d - echo "#!/bin/sh" > ${ROOTFS}/etc/init.d/rcS ( echo "#!/bin/sh" echo "/bin/mount -a" @@ -1103,9 +1108,10 @@ EOF | sed 's/--with-build-sysroot=[^ ]*//' \ | sed 's/--with-arch=armv8//' \ | sed 's/--with-fpu=neon-fp-armv8//' + echo SUFFIX=$SUFFIX echo export J DISTCC_HOSTS DISTCC_BACKOFF_PERIOD PATH - echo export TARGET RPMTARGET TCONFIGARGS + echo export TARGET RPMTARGET TCONFIGARGS SUFFIX ) > $ROOTFS/stage2/local.conf mcd $PREFIX/distccd-bin -- cgit From 9c9eed96db988b70106015e3e84ce60f731f1027 Mon Sep 17 00:00:00 2001 From: Al Stone Date: Sat, 17 Nov 2012 14:54:19 -0700 Subject: aarch64: allow ncurses to put libraries in /lib64, when needed Signed-off-by: Al Stone --- recipe.d/0002-ncurses | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/recipe.d/0002-ncurses b/recipe.d/0002-ncurses index f950766..23c2e7c 100644 --- a/recipe.d/0002-ncurses +++ b/recipe.d/0002-ncurses @@ -1,6 +1,7 @@ mcd $BUILDDIR/ncurses $SRC/ncurses-*/configure $TCONFIGARGS \ --with-shared --without-ada --with-ospeed=unsigned \ + --with-terminfo-dirs=/etc/terminfo:/usr/share/terminfo \ --enable-hard-tabs --enable-xmc-glitch --enable-colorfgbg \ --enable-overwrite \ --enable-pc-files \ @@ -11,6 +12,6 @@ make $J make $J install -echo "INPUT(-lncurses)" > /usr/lib/libcurses.so -echo "INPUT(-lncursesw)" > /usr/lib/libcursesw.so -echo "INPUT(-ltinfo)" > /usr/lib/libtermcap.so +echo "INPUT(-lncurses)" > /usr/lib$SUFFIX/libcurses.so +echo "INPUT(-lncursesw)" > /usr/lib$SUFFIX/libcursesw.so +echo "INPUT(-ltinfo)" > /usr/lib$SUFFIX/libtermcap.so -- cgit