[Buildroot] [PATCH] Apply kernel board patches when do linux26-menuconfig

William Wagner will_wagner at carallon.com
Fri Oct 2 13:03:24 UTC 2009


currently if you have not yet built/upacked linux and you run 
linux26-menuconfig which unpacks linux and applies patches. However it 
does not apply board (or arch) specific patches as would happen if you 
built linux without opening the menuconfig.

Does that make sense? The patch below fixes it:

diff --git a/target/linux/Makefile.in.advanced 
b/target/linux/Makefile.in.advanced
index b4774ca..4b2c451
--- a/target/linux/Makefile.in.advanced
+++ b/target/linux/Makefile.in.advanced
@@ -399,12 +399,12 @@ $(STAMP_DIR)/linux_modules_target_installed: 
$(LINUX26_DIR)/.depend_done
      fi
      touch $@

-linux26-menuconfig: $(LINUX26_DIR)/.patched host-sed
+linux26-menuconfig: $(LINUX26_DIR)/.patched.board host-sed
      [ -f $(LINUX26_DIR)/.config ] || cp $(LINUX26_KCONFIG) 
$(LINUX26_DIR)/.config
      $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) menuconfig
      -[ -f $(LINUX26_DIR)/.config ] && touch $(LINUX26_DIR)/.configured

-linux26-xconfig: $(LINUX26_DIR)/.patched host-sed
+linux26-xconfig: $(LINUX26_DIR)/.patched.board host-sed
      [ -f $(LINUX26_DIR)/.config ] || cp $(LINUX26_KCONFIG) 
$(LINUX26_DIR)/.config
      $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) xconfig
      -[ -f $(LINUX26_DIR)/.config ] && touch $(LINUX26_DIR)/.configured

-- 
------------------------------------------------------------------------
Will Wagner                                     will_wagner at carallon.com
Development Manager                      Office Tel: +44 (0)20 7371 2032
Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA
------------------------------------------------------------------------




More information about the buildroot mailing list