kernel: set --build-id to none build-id
authorPaul Spooren <[email protected]>
Tue, 5 Apr 2022 08:01:13 +0000 (10:01 +0200)
committerPaul Spooren <[email protected]>
Tue, 5 Apr 2022 08:01:13 +0000 (10:01 +0200)
The Build ID is meant to help distinguish between build environments. In
our case it makes it very harder to reproduce binaries we offer to
download.

Set the Build ID to `none` and drop it from the resulting vmlinux.

Suggested-by: Daniel Golle <[email protected]>
Signed-off-by: Paul Spooren <[email protected]>
include/kernel-defaults.mk

index 1e82f7d73994926a36d9b82912e6724594f022a7..9c8d5fbe97c15d6d48d45b6f1b099df2e1ecdec5 100644 (file)
@@ -46,6 +46,7 @@ else
        if [ -d $(LINUX_DIR)/user_headers ]; then \
                rm -rf $(LINUX_DIR)/user_headers; \
        fi
+       $(SED) -i $(LINUX_DIR)/Makefile  -e 's/--build-id=.*/--build-id=none/g'
   endef
 endif