Re: [PATCH/RFC] kernel-defaults.mk: get rid of BuildID

2022-04-05 Thread Petr Štetiar
Daniel Golle [2022-04-05 02:14:09]: Hi, thanks a lot for your and Paul's reproducible efforts! > diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk > index 1e82f7d739..9c8d5fbe97 100644 > --- a/include/kernel-defaults.mk > +++ b/include/kernel-defaults.mk > @@ -46,6 +46,7 @@

Re: [PATCH/RFC] kernel-defaults.mk: get rid of BuildID

2022-04-05 Thread Paul Spooren
Hi, > To investigate the issue of non-reproducible kernel images accross > buildhosts I compated the files build by OpenWrt's buildbots with > Paul's rebuilder script running on his (Aarch64) Mac. Sorry there was a misunderstanding. I’m building on macOS to find extra issues but the “rebuild”

[PATCH] swconfig: parse "switch_vlan" before "switch_port"

2022-04-05 Thread Rafał Miłecki
From: Rafał Miłecki Before this change UCI sections of both types were parsed in order as specified in UCI. That didn't work well with all drivers (e.g. b53). It seems that VLAN setup can reset / overwrite previously set ports parameters. It resulted in "switch_port" options defined above

Re: [PATCH/RFC] kernel-defaults.mk: get rid of BuildID

2022-04-05 Thread Paul Spooren
Hi, >> +$(SED) -i $(LINUX_DIR)/Makefile -e >> 's/--build-id=.*/--build-id=0x$(LINUX_VERMAGIC)/g’ This doesn’t fly since LINUX_VERMAGIC (based on .vermagic) is based on the Kernel configuration and only available after the Configuration step. I moved it from the Prepare to the end of

Re: [PATCH/RFC] kernel-defaults.mk: get rid of BuildID

2022-04-05 Thread Felix Fietkau
On 05.04.22 03:14, Daniel Golle wrote: When building the Linux kernel, the linker generates a hash of all versions of tools involved in a build called BuildID in ELF header. This breaks reproducibility accross different buildhosts eventhough OpenWrt builds the toolchain from source -- the

Re: [PATCH/RFC] kernel-defaults.mk: get rid of BuildID

2022-04-05 Thread Michael Richardson
please forgive me stupidity, I couldn't understand the last part of your recommendation: Daniel Golle wrote: > Hence, to achieve reproducible builds we will either have to resort to > identical containers/VMs for building or get rid of the BuildID hash > alltogether (or use a

Re: [PATCH/RFC] kernel-defaults.mk: get rid of BuildID

2022-04-05 Thread Felix Fietkau
On 05.04.22 20:51, Daniel Golle wrote: On Tue, Apr 05, 2022 at 05:05:43PM +0200, Felix Fietkau wrote: On 05.04.22 03:14, Daniel Golle wrote: > When building the Linux kernel, the linker generates a hash of all > versions of tools involved in a build called BuildID in ELF header. > This breaks

[PATCH 6/6] at91/sama7: Activate USB host support

2022-04-05 Thread Hauke Mehrtens
Activate support for USB host in the sub target. The USB subsystem has to be compiled into the kernel if it is used. Signed-off-by: Hauke Mehrtens --- target/linux/at91/sama7/config-default | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/linux/at91/sama7/config-default

[PATCH 4/6] at91/sama7: Use ext4 driver for ext2 and ext3

2022-04-05 Thread Hauke Mehrtens
Use the ext4 driver for ext2 and ext3 too. This feature is activated in the OpenWrt generic configuration. Signed-off-by: Hauke Mehrtens --- target/linux/at91/sama7/config-default | 6 -- 1 file changed, 6 deletions(-) diff --git a/target/linux/at91/sama7/config-default

[PATCH 0/6] at91/sama7: Update kernel configuration to fix build

2022-04-05 Thread Hauke Mehrtens
This cleans up the kernel configuration of the at91/sama7 target. This also fixes the build of the target. I have only compile tested this, it would be nice if someone could test this on real hardware. I am not sure if the SoC supports USB host mode and if this is sufficient to make USB host

Re: [PATCH/RFC] kernel-defaults.mk: get rid of BuildID

2022-04-05 Thread Bjørn Mork
Daniel Golle writes: > You probably meant LDFLAGS_vmlinux because from what I understand > KBUILD_LDFLAGS_MODULE only applies when building modules but not when > linking vmlinux. > As ld only cares about the last mentioned --build-id= parameter > supplied, we can override it using

[PATCH 3/6] at91/sama7: Deactivate certification and key system

2022-04-05 Thread Hauke Mehrtens
This was probably activated by mac80211 which was activated before. mac80211 is build from backports in OpenWrt. Signed-off-by: Hauke Mehrtens --- target/linux/at91/sama7/config-default | 16 1 file changed, 16 deletions(-) diff --git a/target/linux/at91/sama7/config-default

[PATCH 1/6] at91/sama7: Remove config options build as module

2022-04-05 Thread Hauke Mehrtens
Remove the configuration options which are building modules for the sub target configuration. These kernel modules are not packaged. Kernel options should only be build as a module when they selected by a kmod package and not by setting them to =m in the target kernel configuration.

[PATCH 5/6] at91/sama7: Do not build in Bluetooth

2022-04-05 Thread Hauke Mehrtens
Bluetooth should be activated as an optional kmod package instead of compiling it into the kernel. Signed-off-by: Hauke Mehrtens --- target/linux/at91/sama7/config-default | 6 -- 1 file changed, 6 deletions(-) diff --git a/target/linux/at91/sama7/config-default

[PATCH 2/6] at91/sama7: Do not activate cgroups and namespaces

2022-04-05 Thread Hauke Mehrtens
cgroups and namespaces should be configured by the generic OpenWrt configuration and not for a specific target. Signed-off-by: Hauke Mehrtens --- target/linux/at91/sama7/config-default | 17 - 1 file changed, 17 deletions(-) diff --git a/target/linux/at91/sama7/config-default

[RFC PATCH] mac80211: Update to version 5.15.32-test5

2022-04-05 Thread Hauke Mehrtens
This updates mac80211 to version 5.15.32-test5. The removed patches were applied upstream. This was generated from this backports version: https://github.com/hauke/backports/tree/devel-5.15 Signed-off-by: Hauke Mehrtens --- package/kernel/mac80211/Makefile | 8 +-

Re: [PATCH/RFC] kernel-defaults.mk: get rid of BuildID

2022-04-05 Thread Daniel Golle
On Tue, Apr 05, 2022 at 05:05:43PM +0200, Felix Fietkau wrote: > On 05.04.22 03:14, Daniel Golle wrote: > > When building the Linux kernel, the linker generates a hash of all > > versions of tools involved in a build called BuildID in ELF header. > > This breaks reproducibility accross different