gitlab-ci

This commit is contained in:
wt
2024-09-12 17:02:50 +07:00
parent 02db81b6d9
commit 51c05f855a
8 changed files with 51 additions and 51 deletions
+9 -9
View File
@@ -10,7 +10,7 @@
#------------------ Building busybox for initramfs ----------------
busybox_initramfs() {
printf "$UGREEN** Building busybox for initramfs\n$RESET"
rm -r $build/busybox &>> $fulllogfile
rm -r $build/busybox &>> $fulllogfile >> $(tty)
mkdir -p $build/busybox
cd $build/busybox
tar -xjf $root/downloads/busybox-1.36.1.tar.bz2
@@ -19,10 +19,10 @@ busybox_initramfs() {
cp $root/busybox/busybox-initramfs-config .config
export PATH=$PATH:/opt/toolchains/x86_64-buildroot-linux-uclibc-gcc/bin
printf "$UGREEN** Configuring busybox\n$RESET"
make CROSS_COMPILE=x86_64-buildroot-linux-uclibc- oldconfig &>> $fulllogfile
make CROSS_COMPILE=x86_64-buildroot-linux-uclibc- oldconfig &>> $fulllogfile >> $(tty)
check $? "Configure busybox all logs in .log"
printf "$UGREEN** Building busybox\n$RESET"
make CROSS_COMPILE=x86_64-buildroot-linux-uclibc- $makeflags &>> $fulllogfile
make CROSS_COMPILE=x86_64-buildroot-linux-uclibc- $makeflags &>> $fulllogfile >> $(tty)
check $? "Build busybox all logs in .log"
}
#------------------------------------------------------------------
@@ -30,17 +30,17 @@ busybox_initramfs() {
#----------- Building busybox for rootfs ----------
busybox_rootfs() {
printf "$UGREEN** Building busybox for rootfs\n$RESET"
rm -rv $build/busybox &>> $fulllogfile
mkdir -v $build/busybox &>> $fulllogfile
rm -rv $build/busybox &>> $fulllogfile >> $(tty)
mkdir -v $build/busybox &>> $fulllogfile >> $(tty)
cd $build/busybox
tar -xvjf $root/downloads/busybox-1.36.1.tar.bz2 &>> $fulllogfile
tar -xvjf $root/downloads/busybox-1.36.1.tar.bz2 &>> $fulllogfile >> $(tty)
cd busybox-1.36.1
cp -v $root/busybox/busybox-rootfs-config .config &>> $fulllogfile
cp -v $root/busybox/busybox-rootfs-config .config &>> $fulllogfile >> $(tty)
printf "$UGREEN** Configuring busybox\n$RESET"
make oldconfig &>> $fulllogfile
make oldconfig &>> $fulllogfile >> $(tty)
check $? "Configure busybox all logs in .log"
printf "$UGREEN** Building busybox\n$RESET"
make $makeflags &>> $fulllogfile
make $makeflags &>> $fulllogfile >> $(tty)
check $? "Build busybox all logs in .log"
}
#--------------------------------------------------