From 2a57a623c3bde1ae6dbe3cd43a508b7375c34afe 2018-11-20 09:22:54 From: Unknown Date: 2018-11-20 09:22:54 Subject: [PATCH] remove duplicate code --- diff --git a/rpi23-gen-image.sh b/rpi23-gen-image.sh index ffbdd07..2b072ab 100755 --- a/rpi23-gen-image.sh +++ b/rpi23-gen-image.sh @@ -329,21 +329,6 @@ if [ -n "$DISABLE_UNDERVOLT_WARNINGS" ] ; then fi fi -# Add packages required for kernel cross compilation -if [ "$BUILD_KERNEL" = true ] ; then - if [ "$KERNEL_ARCH" = "arm" ] ; then - 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 - fi - if [ "$RELEASE_ARCH" = "arm64" ]; then - REQUIRED_PACKAGES="${REQUIRED_PACKAGES} crossbuild-essential-arm64" - fi -fi - if [ "$ENABLE_VIDEOCORE" = true ] ; then REQUIRED_PACKAGES="${REQUIRED_PACKAGES} cmake" fi