0.0.1 version of orangepi-pc SimpleLinux

This commit is contained in:
wt
2024-12-05 03:02:07 +07:00
parent d8f78baff0
commit 29af752d10
60 changed files with 6170 additions and 7732 deletions
+26
View File
@@ -0,0 +1,26 @@
#!/bin/sh
. ./scripts/colors.sh
. ./scripts/funcs.sh
. ./scripts/config.sh
#--- uboot ---
uboot() {
printf "$UGREEN** Building uboot\n$RESET"
mkdir -p $build/uboot # &>> $fulllogfile
cd $build/uboot
tar -xvf $root/downloads/u-boot-v2024.10.tar.gz # &>> $fulllogfile
check $? "Extract uboot"
cd u-boot-2024.10
# cp -rv $root/uclibc/config-1.0.50 .config
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE orangepi_pc_defconfig
check $? "Configure uboot"
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE $makeflags # &>> $fulllogfile
check $? "Build uboot"
cp -v u-boot-sunxi-with-spl.bin $out
cp -v arch/arm/dts/sun8i-h3-orangepi-pc.dtb $sdroot/boot/dtbs
# 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"
}
#-------------