* [Buildroot] Build kernel with devicetree support
@ 2013-06-04 8:18 wacha at mit.bme.hu
2013-06-04 15:22 ` Spenser Gilliland
2013-06-05 7:25 ` Thomas Petazzoni
0 siblings, 2 replies; 5+ messages in thread
From: wacha at mit.bme.hu @ 2013-06-04 8:18 UTC (permalink / raw)
To: buildroot
Dear developers,
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:
(irrelevant parts truncated)
make[1]: Leaving directory
`/home/wachag/zynq/buildroot/output/build/linux-v3.6-digilent-13.01'
PATH="/home/wachag/zynq/buildroot/output/host/bin:/home/wachag/zynq/buildroot/output/host/usr/bin:/home/wachag/zynq/buildroot/output/host/usr/sbin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-7-oracle/bin:/usr/lib/jvm/java-7-oracle/db/bin:/usr/lib/jvm/java-7-oracle/jre/bin" PERLLIB="/home/wachag/zynq/buildroot/output/host/usr/lib/perl" /usr/bin/make -j5 HOSTCC="/usr/bin/gcc" HOSTCFLAGS="" ARCH=arm INSTALL_MOD_PATH=/home/wachag/zynq/buildroot/output/target CROSS_COMPILE=" /home/wachag/zynq/buildroot/output/host/usr/bin/arm-none-linux-gnueabi-" DEPMOD=/home/wachag/zynq/buildroot/output/host/usr/sbin/depmod -C /home/wachag/zynq/buildroot/output/build/linux-v3.6-digilent-13.01
"zedboard-devicetree.dtb
/bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
/bin/sh: -c: line 1: syntax error: unexpected end of file
make: ***
[/home/wachag/zynq/buildroot/output/build/linux-v3.6-digilent-13.01/.stamp_built] Error
1
It seems that a quotation mark is missing from the end of the command line.
Since I am new in the buildroot system, I could not find the
appropriate line in the Makefile.
Could someone confirm this is an error in buildroot and not in my
configuration?
Regards,
Gabor Wacha
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Build kernel with devicetree support
2013-06-04 8:18 [Buildroot] Build kernel with devicetree support wacha at mit.bme.hu
@ 2013-06-04 15:22 ` Spenser Gilliland
2013-06-05 7:14 ` wacha at mit.bme.hu
2013-06-05 7:25 ` Thomas Petazzoni
1 sibling, 1 reply; 5+ messages in thread
From: Spenser Gilliland @ 2013-06-04 15:22 UTC (permalink / raw)
To: buildroot
On Tue, 04 Jun 2013 10:18:20 +0200
wacha at mit.bme.hu wrote:
> Dear developers,
>
> 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:
>
> (irrelevant parts truncated)
> make[1]: Leaving directory
> `/home/wachag/zynq/buildroot/output/build/linux-v3.6-digilent-13.01'
> PATH="/home/wachag/zynq/buildroot/output/host/bin:/home/wachag/zynq/buildroot/output/host/usr/bin:/home/wachag/zynq/buildroot/output/host/usr/sbin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-7-oracle/bin:/usr/lib/jvm/java-7-oracle/db/bin:/usr/lib/jvm/java-7-oracle/jre/bin"
> PERLLIB="/home/wachag/zynq/buildroot/output/host/usr/lib/perl" /usr/bin/make
> -j5 HOSTCC="/usr/bin/gcc" HOSTCFLAGS="" ARCH=arm
> INSTALL_MOD_PATH=/home/wachag/zynq/buildroot/output/target
> CROSS_COMPILE=" /home/wachag/zynq/buildroot/output/host/usr/bin/arm-none-linux-gnueabi-"
> DEPMOD=/home/wachag/zynq/buildroot/output/host/usr/sbin/depmod
> -C /home/wachag/zynq/buildroot/output/build/linux-v3.6-digilent-13.01
> "zedboard-devicetree.dtb /bin/sh: -c: line 0: unexpected EOF while
> looking for matching `"' /bin/sh: -c: line 1: syntax error:
> unexpected end of file make: ***
> [/home/wachag/zynq/buildroot/output/build/linux-v3.6-digilent-13.01/.stamp_built]
> Error 1
>
> It seems that a quotation mark is missing from the end of the command
> line. Since I am new in the buildroot system, I could not find the
> appropriate line in the Makefile.
> Could someone confirm this is an error in buildroot and not in my
> configuration?
This is working for me. Can you provide your .config file and the
version of Buildroot you are using?
Thank,
Spenser
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Build kernel with devicetree support
2013-06-04 15:22 ` Spenser Gilliland
@ 2013-06-05 7:14 ` wacha at mit.bme.hu
0 siblings, 0 replies; 5+ messages in thread
From: wacha at mit.bme.hu @ 2013-06-05 7:14 UTC (permalink / raw)
To: buildroot
Id?zet (Spenser Gilliland <spenser@gillilanding.com>):
> On Tue, 04 Jun 2013 10:18:20 +0200
> wacha at mit.bme.hu wrote:
>
>> Dear developers,
>>
>> 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:
>>
>> (irrelevant parts truncated)
>> make[1]: Leaving directory
>> `/home/wachag/zynq/buildroot/output/build/linux-v3.6-digilent-13.01'
>> PATH="/home/wachag/zynq/buildroot/output/host/bin:/home/wachag/zynq/buildroot/output/host/usr/bin:/home/wachag/zynq/buildroot/output/host/usr/sbin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-7-oracle/bin:/usr/lib/jvm/java-7-oracle/db/bin:/usr/lib/jvm/java-7-oracle/jre/bin"
>> PERLLIB="/home/wachag/zynq/buildroot/output/host/usr/lib/perl" /usr/bin/make
>> -j5 HOSTCC="/usr/bin/gcc" HOSTCFLAGS="" ARCH=arm
>> INSTALL_MOD_PATH=/home/wachag/zynq/buildroot/output/target
>> CROSS_COMPILE="
>> /home/wachag/zynq/buildroot/output/host/usr/bin/arm-none-linux-gnueabi-"
>> DEPMOD=/home/wachag/zynq/buildroot/output/host/usr/sbin/depmod
>> -C /home/wachag/zynq/buildroot/output/build/linux-v3.6-digilent-13.01
>> "zedboard-devicetree.dtb /bin/sh: -c: line 0: unexpected EOF while
>> looking for matching `"' /bin/sh: -c: line 1: syntax error:
>> unexpected end of file make: ***
>> [/home/wachag/zynq/buildroot/output/build/linux-v3.6-digilent-13.01/.stamp_built]
>> Error 1
>>
>> It seems that a quotation mark is missing from the end of the command
>> line. Since I am new in the buildroot system, I could not find the
>> appropriate line in the Makefile.
>> Could someone confirm this is an error in buildroot and not in my
>> configuration?
>
> This is working for me. Can you provide your .config file and the
> version of Buildroot you are using?
>
> Thank,
> Spenser
>
>
Of course.
I use the development version from git
(a0c5fb4fd1f1b5631109e63daa7d2070fa7a17d8), the configuration files
are attached.
Regards,
Gabor Wacha
_______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
-------------- next part --------------
A non-text attachment was scrubbed...
Name: busybox-config
Type: application/octet-stream
Size: 25228 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130605/adbdfb68/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config
Type: application/octet-stream
Size: 33115 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130605/adbdfb68/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zedboard-devicetree.dts
Type: application/octet-stream
Size: 15602 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130605/adbdfb68/attachment-0005.obj>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Build kernel with devicetree support
2013-06-04 8:18 [Buildroot] Build kernel with devicetree support wacha at mit.bme.hu
2013-06-04 15:22 ` Spenser Gilliland
@ 2013-06-05 7:25 ` Thomas Petazzoni
2013-06-05 8:00 ` "Gábor, Wacha"
1 sibling, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2013-06-05 7:25 UTC (permalink / raw)
To: buildroot
Hello,
On Tue, 04 Jun 2013 10:18:20 +0200, wacha at 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?
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)
Thanks,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] Build kernel with devicetree support
2013-06-05 7:25 ` Thomas Petazzoni
@ 2013-06-05 8:00 ` "Gábor, Wacha"
0 siblings, 0 replies; 5+ messages in thread
From: "Gábor, Wacha" @ 2013-06-05 8:00 UTC (permalink / raw)
To: buildroot
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)
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-06-05 8:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-04 8:18 [Buildroot] Build kernel with devicetree support wacha at mit.bme.hu
2013-06-04 15:22 ` Spenser Gilliland
2013-06-05 7:14 ` wacha at mit.bme.hu
2013-06-05 7:25 ` Thomas Petazzoni
2013-06-05 8:00 ` "Gábor, Wacha"
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox