added duf and nginx and some refactor
This commit is contained in:
+3
-5
@@ -9,16 +9,15 @@ uboot_version=2025.07
|
||||
#--- uboot ---
|
||||
uboot() {
|
||||
printf "$UGREEN** Building uboot\n$RESET"
|
||||
mkdir -p $build/uboot # &>> $fulllogfile
|
||||
mkdir -p $build/uboot
|
||||
cd $build/uboot
|
||||
tar -xvf $root/downloads/v$uboot_version.tar.gz # &>> $fulllogfile
|
||||
tar -xvf $root/downloads/v$uboot_version.tar.gz
|
||||
check $? "Extract uboot"
|
||||
cd u-boot-$uboot_version
|
||||
# cp -rv $root/uclibc/config-1.0.50 .config
|
||||
make ARCH=arm CROSS_COMPILE=$CROSS_COMPILE- $UBOOT_DEFCONFIG
|
||||
check $? "Configure uboot"
|
||||
if [ "$BOARD_NAME" = "orangepi_pc" ]; then
|
||||
make ARCH=arm CROSS_COMPILE=$CROSS_COMPILE- $makeflags # &>> $fulllogfile
|
||||
make ARCH=arm CROSS_COMPILE=$CROSS_COMPILE- $makeflags
|
||||
elif [ "$BOARD_NAME" = "orangepi_zero_2w" ]; then
|
||||
make ARCH=arm CROSS_COMPILE=$CROSS_COMPILE- BL31=$root/board/$BOARD_NAME/bl31.bin $makeflags
|
||||
fi
|
||||
@@ -29,7 +28,6 @@ uboot() {
|
||||
elif [ "$ARCH" = "arm64" ]; then
|
||||
cp -v dts/upstream/src/arm64/allwinner/sun50i-h618-orangepi-zero2w.dtb $sdroot/boot/dtbs
|
||||
fi
|
||||
# make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE DESTDIR=$rootfspath install # &>> $fulllogfile
|
||||
check $? "Install uboot to out directory"
|
||||
check $? "Build and install uboot to out directory"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user