Commit e7ff72e0 authored by ZappeL's avatar ZappeL
Browse files

fixed gcc upgrade and kernel build

parent 38a3fca3
......@@ -23,7 +23,7 @@ ex_gcc_upgrade() {
env-update && . /etc/profile
emerge -1O sys-devel/libtool
echo -e \"removing old gcc...\"
emerge --ask --depclean =sys-devel/gcc:8.3.0
emerge --ask --depclean sys-devel/gcc:8.3.0
}\n" >> ${chroot_rc}
fi
# hint, next should be:
......
......@@ -17,14 +17,16 @@ chroot_rc=$1/etc/bash/bashrc.d/chroot.sh
if [[ -f ${chroot_rc} ]]; then
echo -e "
ex_kernel_build() {
echo currently unsupported\!
exit 0
echo -e \"checking for sys-devel/bc...\"
([[ ! `builtin type -p bc` ]] && emerge sys-devel/bc &>/dev/null)
echo -e \"preparing kernel...\"
cd /usr/src/linux
make -s menuconfig
make -j\`nproc\` && make modules_install
cp arch/arm64/boot/Image /boot/kernel8.img
cp arch/arm64/boot/dts/broadcom/bcm2711-rpi-4-b.dtb /boot/
cp arch/arm64/boot/dts/overlays/* /boot/overlays
echo -e \"done.\"
}\n" >> ${chroot_rc}
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment