1 | NO CONTENT: modified file |
|
NO CONTENT: modified file |
@@ -8,6 +8,7 INITRAMFS_UBOOT="${INITRAMFS}.uboot" | |||||
8 | # Extract kernel arch |
|
8 | # Extract kernel arch | |
9 | case "${KERNEL_ARCH}" in |
|
9 | case "${KERNEL_ARCH}" in | |
10 | arm*) KERNEL_ARCH=arm ;; |
|
10 | arm*) KERNEL_ARCH=arm ;; | |
|
11 | aarch64) KERNEL_ARCH=arm64 ;; | |||
11 | esac |
|
12 | esac | |
12 |
|
13 | |||
13 | # Regenerate initramfs |
|
14 | # Regenerate initramfs |
@@ -63,15 +63,15 chroot_install_cc() { | |||||
63 | # Install c/c++ build environment inside the chroot |
|
63 | # Install c/c++ build environment inside the chroot | |
64 | if [ -z "${COMPILER_PACKAGES}" ] ; then |
|
64 | if [ -z "${COMPILER_PACKAGES}" ] ; then | |
65 | COMPILER_PACKAGES=$(chroot_exec apt-get -s install g++ make bc | grep "^Inst " | awk -v ORS=" " '{ print $2 }') |
|
65 | COMPILER_PACKAGES=$(chroot_exec apt-get -s install g++ make bc | grep "^Inst " | awk -v ORS=" " '{ print $2 }') | |
66 | # Install COMPILER_PACKAGES in chroot |
|
66 | # Install COMPILER_PACKAGES in chroot - NEVER do "${COMPILER_PACKAGES}" -> breaks uboot | |
67 |
chroot_exec apt-get -q -y --allow-unauthenticated --no-install-recommends install |
|
67 | chroot_exec apt-get -q -y --allow-unauthenticated --no-install-recommends install ${COMPILER_PACKAGES} | |
68 | fi |
|
68 | fi | |
69 | } |
|
69 | } | |
70 |
|
70 | |||
71 | chroot_remove_cc() { |
|
71 | chroot_remove_cc() { | |
72 | # Remove c/c++ build environment from the chroot |
|
72 | # Remove c/c++ build environment from the chroot | |
73 | if [ -n "${COMPILER_PACKAGES}" ] ; then |
|
73 | if [ -n "${COMPILER_PACKAGES}" ] ; then | |
74 |
chroot_exec apt-get -qq -y --auto-remove purge |
|
74 | chroot_exec apt-get -qq -y --auto-remove purge ${COMPILER_PACKAGES} | |
75 | COMPILER_PACKAGES="" |
|
75 | COMPILER_PACKAGES="" | |
76 | fi |
|
76 | fi | |
77 | } |
|
77 | } |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant