From 14418725f4c97f4ab77b1ecb3b3471d335cfc655 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Mon, 8 Apr 2024 18:49:07 +0200 Subject: [PATCH] Wrap Buildroot 'legal-info' build target to include Linux license When building a Linux kernel that does not match the latest kernel known by Buildroot, the license file is disabled and nothing is extracted. For an introduction to this see Buildroot gaf33b1c. To work around this in Infix we wrap the 'legal-info' build target to set the license file variable and trigger the license extraction anyway. Signed-off-by: Joachim Wiberg --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index ecccc460..9ff4a405 100644 --- a/Makefile +++ b/Makefile @@ -25,6 +25,9 @@ $(config): %: | buildroot/Makefile @+$(call bmake,$@) +legal-info: | buildroot/Makefile + $(call bmake,legal-info LINUX_LICENSE_FILES=COPYING) + # Workaround, see board/x86_64/board.mk test: @+$(call bmake,$@)