diff mbox

Build kernel with devicetree support

Message ID 20130605092543.62a08c4e@skate
State Accepted
Commit 82d2a47478e436495e5fe3cd5aff308fe3f212d4
Headers show

Commit Message

Thomas Petazzoni June 5, 2013, 7:25 a.m. UTC
Hello,

On Tue, 04 Jun 2013 10:18:20 +0200, wacha@mit.bme.hu wrote:

> I am trying to build a root file system and the Linux kernel with buildroot.
> 
> Because it is a custom hardware, I've set the device tree source  
> option to use a custom device tree file.
> My device tree source file path is set to the device tree file name,  
> which resides in the buildroot top level directory.
> 
> With that configuration the kernel fails to build from source:

Can you try the untested patch below?


Thanks,

Thomas

Comments

Gábor, Wacha June 5, 2013, 8 a.m. UTC | #1
Dear Thomas,

The patch solved my problem, thank you.
Regards,
Gabor

2013-06-05 09:25 keltezéssel, Thomas Petazzoni írta:
> diff --git a/linux/linux.mk b/linux/linux.mk
> index 11b32c3..177446d 100644
> --- a/linux/linux.mk
> +++ b/linux/linux.mk
> @@ -55,7 +55,7 @@ LINUX_VERSION_PROBED = $(shell $(MAKE) $(LINUX_MAKE_FLAGS) -C $(LINUX_DIR) --no-
>   ifeq ($(BR2_LINUX_KERNEL_USE_INTREE_DTS),y)
>   KERNEL_DTS_NAME = $(call qstrip,$(BR2_LINUX_KERNEL_INTREE_DTS_NAME))
>   else ifeq ($(BR2_LINUX_KERNEL_USE_CUSTOM_DTS),y)
> -KERNEL_DTS_NAME = $(basename $(notdir $(BR2_LINUX_KERNEL_CUSTOM_DTS_PATH)))
> +KERNEL_DTS_NAME = $(basename $(notdir $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_DTS_PATH))))
>   endif
>   
>   ifeq ($(BR2_LINUX_KERNEL_DTS_SUPPORT)$(KERNEL_DTS_NAME),y)
diff mbox

Patch

diff --git a/linux/linux.mk b/linux/linux.mk
index 11b32c3..177446d 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -55,7 +55,7 @@  LINUX_VERSION_PROBED = $(shell $(MAKE) $(LINUX_MAKE_FLAGS) -C $(LINUX_DIR) --no-
 ifeq ($(BR2_LINUX_KERNEL_USE_INTREE_DTS),y)
 KERNEL_DTS_NAME = $(call qstrip,$(BR2_LINUX_KERNEL_INTREE_DTS_NAME))
 else ifeq ($(BR2_LINUX_KERNEL_USE_CUSTOM_DTS),y)
-KERNEL_DTS_NAME = $(basename $(notdir $(BR2_LINUX_KERNEL_CUSTOM_DTS_PATH)))
+KERNEL_DTS_NAME = $(basename $(notdir $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_DTS_PATH))))
 endif
 
 ifeq ($(BR2_LINUX_KERNEL_DTS_SUPPORT)$(KERNEL_DTS_NAME),y)