aparcar / openwrt

Staging tree of Paul Spooren
Other
9 stars 1 forks source link

FS#1282 - "CONFIG_STRIP_KERNEL_EXPORTS" breaks kernel compilation for Raspberry PI3 (arm64) #1104

Open aparcar opened 6 years ago

aparcar commented 6 years ago

torte71:

Target: brcm2708_bcm2710 (rpi-3) Affected openwrt revision: git-head (26045049baf646aa2ce3dce78106da5acf4936ea) (openwrt-17.01 is not affected)

On recent kernels (4.9.x, arm64 build), linker scripts are used to generate "vdso.lds" at the "make modules" stage. But the file "symtab.h" is generated later (at the install/image generation stage). See openwrt/include/kernel-build.mk: $(LINUX_DIR)/.image: $(STAMP_CONFIGURED) $(if $(CONFIG_STRIP_KERNEL_EXPORTS),$(KERNEL_BUILD_DIR)/symtab.h) FORCE $(Kernel/CompileImage) $(Kernel/CollectDebug) touch $$@ As a result, kernel compilation fails.

aparcar commented 6 years ago

Amineahd:

I opened PR#696 to fix this