From ba1e454d05b778fd3ea83fe4a20357e1b127d545 2018-11-05 12:19:07 From: Unknown Date: 2018-11-05 12:19:07 Subject: [PATCH] cross-compiler update --- diff --git a/rpi23-gen-image.sh b/rpi23-gen-image.sh index 50c37dc..5f0cd85 100755 --- a/rpi23-gen-image.sh +++ b/rpi23-gen-image.sh @@ -301,9 +301,15 @@ fi # Add packages required for kernel cross compilation if [ "$BUILD_KERNEL" = true ] ; then if [ "$KERNEL_ARCH" = "arm" ] ; then - REQUIRED_PACKAGES="${REQUIRED_PACKAGES} crossbuild-essential-armhf" - else - REQUIRED_PACKAGES="${REQUIRED_PACKAGES} crossbuild-essential-arm64" + if [ "$RELEASE_ARCH" = "armel" ]; then + REQUIRED_PACKAGES="${REQUIRED_PACKAGES} crossbuild-essential-armel" + fi + if [ "$RELEASE_ARCH" = "armhf" ]; then + REQUIRED_PACKAGES="${REQUIRED_PACKAGES} crossbuild-essential-armhf" + fi + if [ "$RELEASE_ARCH" = "arm64" ]; then + REQUIRED_PACKAGES="${REQUIRED_PACKAGES} crossbuild-essential-arm64" + fi fi fi