[Buildroot] kernel patch not applied

David Claffey david.claffey at rcn.com
Thu May 10 14:21:49 UTC 2007


I have a custom kernel patch I want applied when building the 2.6 kernel.  I
created a device under target/devices with a directory kernel-patches and
BR2_BOARD_PATH set correctly.  However, the patch is never applied apparently
because all patches are assumed to be minor kernel version patches.

In the case when DOWNLOAD_LINUX26_VERSION equals LINUX26_VERSION no patches,
including custom kernel patches, are applied. My current fix below will change
the directory name if minor kernel patches are applied, but still allow patches
in $(BR2_BOARD_PATH)/kernel-patches to be applied.

Could this cause problem elsewhere in the build?

Index: target/linux26.mk
===================================================================
--- target/linux26.mk     (revision 18593)
+++ target/linux26.mk     (working copy)
@@ -74,11 +74,11 @@
        mv -f $(BUILD_DIR)/linux-$(DOWNLOAD_LINUX26_VERSION) $(LINUX26_DIR)
 endif
        touch $@
+endif # ($(LINUX26_VERSION),$(LINUX_HEADERS_VERSION))

 $(LINUX26_DIR)/.patched: $(LINUX26_DIR)/.unpacked
        toolchain/patch-kernel.sh $(LINUX26_DIR) $(LINUX26_PATCH_DIR)
        touch $@
-endif # ($(LINUX26_VERSION),$(LINUX_HEADERS_VERSION))

 $(LINUX26_DIR)/.configured:  $(LINUX26_DIR)/.patched  $(LINUX26_KCONFIG)
        cp -dpf $(LINUX26_KCONFIG) $(LINUX26_DIR)/.config



More information about the buildroot mailing list