update
This commit is contained in:
+15
-5
@@ -26,6 +26,7 @@
|
||||
. ./scripts/wpa_supplicant.sh
|
||||
. ./scripts/lrzsz.sh
|
||||
. ./scripts/tcc.sh
|
||||
. ./scripts/cleanup_rootfs.sh
|
||||
|
||||
#----------- Building rootfs ----------------------
|
||||
rootfs() {
|
||||
@@ -59,14 +60,14 @@ BUILD_ID="$distro_build_id"
|
||||
EOF
|
||||
|
||||
busybox_rootfs
|
||||
cp -v $build/busybox/busybox-${BUSYBOX_VERSION}/busybox $rootfspath/usr/bin # &>> $fulllogfile
|
||||
cd $rootfspath/usr/bin
|
||||
for i in $(cat $BUSYBOX_LIST_FILE); do ln -sv busybox $i; done
|
||||
# cp -v $build/busybox/busybox-${BUSYBOX_VERSION}/busybox $rootfspath/usr/bin # &>> $fulllogfile
|
||||
# cd $rootfspath/usr/bin
|
||||
# for i in $(cat $BUSYBOX_LIST_FILE); do ln -sv busybox $i; done
|
||||
# cp -v $root/rootfs/init.in $rootfspath/init
|
||||
kernel_headers
|
||||
uclibc
|
||||
kernel
|
||||
kernel_modules
|
||||
# kernel
|
||||
# kernel_modules
|
||||
if [ "$FINIT_INIT_ENABLE" = "y" ]; then
|
||||
finit_init
|
||||
# cp -rv $root/rootfs/overlay/* $rootfspath
|
||||
@@ -112,5 +113,14 @@ EOF
|
||||
chmod 644 $rootfspath/etc/{passwd,group,hostname,hosts,fstab,shells,issue} $rootfspath/etc/network/interfaces
|
||||
|
||||
check $? "Build rootfs"
|
||||
cleanup_rootfs
|
||||
kernel
|
||||
kernel_modules
|
||||
if [ "${board}" = "orangepi_pc" ] && [ "${TCC_C_COMPILER_ENABLE}" = "y" ]
|
||||
then
|
||||
cd $rootfspath
|
||||
patch -p1 < $root/board/board/uclibc-1.0.56-byteswap-common.h.patch
|
||||
cd -
|
||||
fi
|
||||
} # rootfs
|
||||
#--------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user