* [Buildroot] Builroot Make Error (
@ 2008-12-03 0:45 Quick X
2008-12-03 8:17 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Quick X @ 2008-12-03 0:45 UTC (permalink / raw)
To: buildroot
make menuconfig > Target Options > Atmel Device Support > Secondary locations (*** Package support ***) > also copy the image to...
If this value is set to nothing "()" then you get a "mkdir -p" "mkdir: missing operand" "Error 1" problem, most the other "Copy To" Locations allow you to not copy if you wish it.
[...]
/home/administrator/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-objcopy --gap-fill=0xff -O srec /home/administrator/buildroot/project_build_arm/at91sam9261ek/u-boot-1.2.0-atmel/u-boot /home/administrator/buildroot/project_build_arm/at91sam9261ek/u-boot-1.2.0-atmel/u-boot.srec/home/administrator/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-objcopy --gap-fill=0xff -O binary /home/administrator/buildroot/project_build_arm/at91sam9261ek/u-boot-1.2.0-atmel/u-boot /home/administrator/buildroot/project_build_arm/at91sam9261ek/u-boot-1.2.0-atmel/u-boot.bingzip -c /home/administrator/buildroot/project_build_arm/at91sam9261ek/u-boot-1.2.0-atmel/u-boot.bin > /home/administrator/buildroot/project_build_arm/at91sam9261ek/u-boot-1.2.0-atmel/u-boot.gzmake[1]: Leaving directory `/home/administrator/buildroot/build_arm/u-boot-1.2.0-atmel'mkdir -p /home/administrator/buildroot/binaries/at91sam9261ekcp /home/administrator/buildroot/project_build_arm/at91sam9261ek/u-boot-1.2.0-atmel/u-boot.bin /home/administrator/buildroot/binaries/at91sam9261ek/at91sam9261ek-u-boot-1.2.0-atmel-20081202.binmkdir -pmkdir: missing operandTry `mkdir --help' for more information.make: *** [/at91sam9261ek-u-boot-1.2.0-atmel-20081202.bin] Error 1
_________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20081202/a68561af/attachment.htm
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Buildroot] Builroot Make Error (
2008-12-03 0:45 [Buildroot] Builroot Make Error ( Quick X
@ 2008-12-03 8:17 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2008-12-03 8:17 UTC (permalink / raw)
To: buildroot
Le Tue, 2 Dec 2008 16:45:13 -0800,
Quick X <quickx@hotmail.com> a ?crit :
> make menuconfig > Target Options > Atmel Device Support > Secondary
> locations (*** Package support ***) > also copy the image to...
> If this value is set to nothing "()" then you get a "mkdir -p"
> "mkdir: missing operand" "Error 1" problem, most the other "Copy To"
> Locations allow you to not copy if you wish it. [...]
There's a missing test in
target/device/Atmel/at91bootstrap/at91bootstrap.mk, fixed by the
attached patch. But I think your problem is occuring in
target/device/Atmel/u-boot/u-boot.mk, which uses TARGET_ATMEL_COPYTO
without testing if it's set or not. A more slightly more complicated
fix is needed here.
Sincerly,
Thomas
---
target/device/Atmel/at91bootstrap/at91bootstrap.mk | 2 ++
1 file changed, 2 insertions(+)
Index: buildroot2/target/device/Atmel/at91bootstrap/at91bootstrap.mk
===================================================================
--- buildroot2.orig/target/device/Atmel/at91bootstrap/at91bootstrap.mk
+++ buildroot2/target/device/Atmel/at91bootstrap/at91bootstrap.mk
@@ -63,7 +63,9 @@
$(BINARIES_DIR)/$(AT91BOOTSTRAP_BINARY): $(AT91BOOTSTRAP_TARGET)
mkdir -p $(BINARIES_DIR)
cp $(AT91BOOTSTRAP_TARGET) $(BINARIES_DIR)/$(AT91BOOTSTRAP_BINARY)
+ifneq ($(TARGET_ATMEL_COPYTO),)
cp $(AT91BOOTSTRAP_TARGET) $(BR2_TARGET_ATMEL_COPYTO)/$(AT91BOOTSTRAP_BINARY)
+endif
.PHONY: at91bootstrap at91bootstrap-source
--
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-12-03 8:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-03 0:45 [Buildroot] Builroot Make Error ( Quick X
2008-12-03 8:17 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox