Bug 821

Summary: cp: illegal operation
Product: buildroot Reporter: Markus Schabel <markus.schabel>
Component: OtherAssignee: unassigned
Status: RESOLVED WONTFIX    
Severity: normal CC: buildroot
Priority: P5    
Version: 2009.11   
Target Milestone: 2010.02   
Hardware: Macintosh   
OS: Mac OS   
Host: MacBook Pro running Snow Leopard Target: ARM SX-560
Build: buildroot

Description Markus Schabel 2009-12-21 23:13:10 UTC
When building the toolchain on my Mac, it always halts because of an illegal parameter for cp. the parameter "-d" is not supported on Mac OS X. The following patch should work on all systems:

--- Makefile    2008-02-25 09:15:31.000000000 +0100
+++ Makefile    2009-12-22 00:04:29.000000000 +0100
@@ -283,11 +257,11 @@
 $(BR2_DEPENDS_DIR): .config
 	rm -rf $@
 	mkdir -p $(@D)
+	cp -af $(CONFIG)/buildroot-config $@
-	cp -dpRf $(CONFIG)/buildroot-config $@
 
 dirs: $(DL_DIR) $(TOOL_BUILD_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) \
Comment 1 Peter Korsgaard 2010-01-28 22:59:15 UTC
Sorry, I think you'll run into a lot more problems than that to use BR on !Linux.
E.G.:

git grep 'cp -d'|wc -l
185

On top of that comes the build systems of the individual packages. I think you'll have a lot easier time dual booting / running Linux in a VM.

Comment 2 Thomas Petazzoni 2010-02-21 18:53:40 UTC
We do not support building on Mac OS X at the moment, unless someone with access to this system steps in to maintain such a port.