Skip to content

Commit 6c20fae

Browse files
xtexxmasahir0y
authored andcommitted
kbuild: defconf: use SRCARCH to find merged configs
For some ARCH values, SRCARCH, which should be used for finding arch/ subdirectory, is different from ARCH. Signed-off-by: Zhang Bingwu <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 6613476 commit 6c20fae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/Makefile.defconf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
# Input config fragments without '.config' suffix
1010
define merge_into_defconfig
1111
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh \
12-
-m -O $(objtree) $(srctree)/arch/$(ARCH)/configs/$(1) \
13-
$(foreach config,$(2),$(srctree)/arch/$(ARCH)/configs/$(config).config)
12+
-m -O $(objtree) $(srctree)/arch/$(SRCARCH)/configs/$(1) \
13+
$(foreach config,$(2),$(srctree)/arch/$(SRCARCH)/configs/$(config).config)
1414
+$(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig
1515
endef
1616

@@ -23,7 +23,7 @@ endef
2323
# Input config fragments without '.config' suffix
2424
define merge_into_defconfig_override
2525
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh \
26-
-Q -m -O $(objtree) $(srctree)/arch/$(ARCH)/configs/$(1) \
27-
$(foreach config,$(2),$(srctree)/arch/$(ARCH)/configs/$(config).config)
26+
-Q -m -O $(objtree) $(srctree)/arch/$(SRCARCH)/configs/$(1) \
27+
$(foreach config,$(2),$(srctree)/arch/$(SRCARCH)/configs/$(config).config)
2828
+$(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig
2929
endef

0 commit comments

Comments
 (0)