armbian / build

Armbian Linux build framework generates custom Debian or Ubuntu image for x86, aarch64, riscv64 & armhf
https://www.armbian.com
GNU General Public License v2.0
4.23k stars 2.31k forks source link

Image build warning from kernel make: `Makefile:235: target 'install' given more than once in the same rule` #6446

Open ColorfulRhino opened 7 months ago

ColorfulRhino commented 7 months ago

https://github.com/armbian/build/blob/86df0089fc8b990dfb633c6294e6b558db0c2d06/lib/functions/compilation/kernel.sh#L132

This line is giving a warning on normal builds because it adds install twice to make.

Log from /.compile.sh build BOARD=nanopi-r5c BRANCH=edge

### kernel_build.log 
--> (18) INFO: Building kernel [ rockchip64 linux-rockchip64-edge all Image install install modules_install headers_install dtbs_install ]
--> (18) COMMAND: ccache --zero-stats
   Statistics zeroed
--> (18) COMMAND: env -i CCACHE_BASEDIR="/home/user/build-fork/cache/sources/linux-kernel-worktree/6.8__rockchip64__arm64" CCACHE_TEMPDIR="/home/user/build-fork/.tmp/work-a1835808-1d24-4ff2-a50b-712003dbb975/ccache_tmp" PATH="/usr/bin:/usr/lib/ccache:/home/user/build-fork/.tmp/work-a1835808-1d24-4ff2-a50b-712003dbb975/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" DPKG_COLORS=always XZ_OPT='--threads=0' TERM='xterm-256color' COLUMNS='140' COLORFGBG='' make '-j24' 'ARCH=arm64' 'LOCALVERSION=-edge-rockchip64' 'CROSS_COMPILE=ccache  aarch64-linux-gnu-' 'KCFLAGS=-fdiagnostics-color=always -Wno-error=misleading-indentation ' 'SOURCE_DATE_EPOCH=1711491814' 'KBUILD_BUILD_TIMESTAMP=Tue Mar 26 23:23:34 CET 2024' 'KBUILD_BUILD_USER=armbian' 'KBUILD_BUILD_HOST=next' 'KGZIP=pigz' 'KBZIP2=pbzip2' 'INSTALL_MOD_STRIP=1' 'INSTALL_DTBS_PATH=/home/user/build-fork/.tmp/work-a1835808-1d24-4ff2-a50b-712003dbb975/kernel_dest_install_dir-IxBrt/dtbs' 'INSTALL_PATH=/home/user/build-fork/.tmp/work-a1835808-1d24-4ff2-a50b-712003dbb975/kernel_dest_install_dir-IxBrt/image/boot' 'INSTALL_HDR_PATH=/home/user/build-fork/.tmp/work-a1835808-1d24-4ff2-a50b-712003dbb975/kernel_dest_install_dir-IxBrt/libc_headers' 'INSTALL_MOD_PATH=/home/user/build-fork/.tmp/work-a1835808-1d24-4ff2-a50b-712003dbb975/kernel_dest_install_dir-IxBrt/modules' all Image install install modules_install headers_install dtbs_install 
   Makefile:235: target 'install' given more than once in the same rule
   /home/user/build-fork/cache/sources/linux-kernel-worktree/6.8__rockchip64__arm64/Makefile:352: target 'install' given more than once in the same rule
     SYNC    include/config/auto.conf.cmd
     UPD     include/generated/compile.h
     DTC     arch/arm64/boot/dts/rockchip/rk3318-box.dtb
github-actions[bot] commented 7 months ago

Jira ticket: AR-2116