Skip to contentSkip to conversation

linux: linux.mk: _defconfig not required for arm64 instead use defconfig

PATCH New naresh.kamboju at linaro.org 2 participants 2 messages Apr 19, 2016 – Apr 28, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux: linux.mk: _defconfig not required for arm64 instead use defconfig

From: Naresh Kamboju <[email protected]>

Linux arch/arm64 contains configs/defconfig not the <board>_defconfig

---
 linux/linux.mk | 4 ++++
 1 file changed, 4 insertions(+)
linux/linux.mk +4 -0
index 317587f..f7fb244 100644
@@ -198,7 +198,11 @@ endef
 LINUX_POST_PATCH_HOOKS += LINUX_TRY_PATCH_TIMECONST
 
 ifeq ($(BR2_LINUX_KERNEL_USE_DEFCONFIG),y)
+ifeq ($(KERNEL_ARCH),arm64)
+LINUX_KCONFIG_DEFCONFIG = $(call qstrip,$(BR2_LINUX_KERNEL_DEFCONFIG))
+else
 LINUX_KCONFIG_DEFCONFIG = $(call qstrip,$(BR2_LINUX_KERNEL_DEFCONFIG))_defconfig
+endif
 else ifeq ($(BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG),y)
 LINUX_KCONFIG_FILE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE))
 endif
Signature · 1 line
2.8.1
#1 lore raw

PATCH 1/1 linux: linux.mk: _defconfig not required for arm64 instead use defconfig

Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"naresh" == naresh kamboju <[email protected]> writes:

From: Naresh Kamboju <[email protected]>
Linux arch/arm64 contains configs/defconfig not the <board>_defconfig

But is that likely to stay like that, even for various vendor trees?

I've recently merged the defconfig for odroidc2, and that one use

BR2_LINUX_KERNEL_DEFCONFIG="odroidc2"

With a vendor kernel based on 3.14:

https://github.com/hardkernel/linux/tree/odroidc2-3.14.y/arch/arm64/configs

Perhaps we should instead interpret BR2_LINUX_KERNEL_DEFCONFIG="" as defconfig and not _defconfig (and then drop the check around line 423).

Quoted 28 lines
---
 linux/linux.mk | 4 ++++
 1 file changed, 4 insertions(+)
linux/linux.mk +4 -0
index 317587f..f7fb244 100644
@@ -198,7 +198,11 @@ endef
 LINUX_POST_PATCH_HOOKS += LINUX_TRY_PATCH_TIMECONST
 
 ifeq ($(BR2_LINUX_KERNEL_USE_DEFCONFIG),y)
+ifeq ($(KERNEL_ARCH),arm64)
+LINUX_KCONFIG_DEFCONFIG = $(call qstrip,$(BR2_LINUX_KERNEL_DEFCONFIG))
+else
 LINUX_KCONFIG_DEFCONFIG = $(call qstrip,$(BR2_LINUX_KERNEL_DEFCONFIG))_defconfig
+endif
 else ifeq ($(BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG),y)
 LINUX_KCONFIG_FILE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE))
 endif
Signature · 6 lines
2.8.1

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 1 line
Bye, Peter Korsgaard