Hello, On Friday 26 August 2011 16:09:30 Emmanuel Deloget wrote: > Hello, > > I'm not sure whether this is by design or if this is a mistake, but when > one does a > > make toolchain/kernel-headers/prepare > > for the first time, the build process applies the generic patches (in > $(GENERIC_PLATFORM_DIR)/paches-$(KERNEL_VERSION)) but not the ones that > are located in the specific platform subtree. This has an undesireable > consequence: when one wants to modify a linux header that can be used by > some userspace program, he must add its patch in the generic subtree - > otherwise the changes to the header file are not visible. > > The same remark applies for the platfom files/ directory, which contains > potentially important header files as well. > > The kernel-headers toolchain package shall have no patches/ and no > files/ - that doesn't make sense. Since the patches are applied on the > linux tree, they should be added into to linux generic patch dir (same > remark for the files), so maybe one can just set PATCH_DIR to > $(PLATFORM_DIR)/patches-$(KERNEL_VERSION) (or something like that) in > kernel-headers/Makefile - or change the Kernel/Patch/Default rule so > that it always apply the platform patches - and not the patches in > PATCH_DIR (since this variable depends on the package). > > So, honnest mistake or design choice? (i.e. what should I do with this > report?)
This is by design. If your target platforms needs specific kernel headers to be staged, then most likely all platforms also need this change as well. At this stage, such kernel headers are only relevant for the toolchain, since kernel modules or other applications can later, in their own makefile decide to include kernel headers directly. -- Florian _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel