summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <walsimou@walsimou.com>2009-08-19 09:50:20 +0200
committerAbdoulaye Walsimou Gaye <walsimou@walsimou.com>2009-08-19 09:50:20 +0200
commita178107530301d12cb5f16762a890fc0dea4d253 (patch)
treee68a3efa007409656b0e0abc56c24bfdb04cdfdb
parent8441fea07f0c91a9dc69eede4c7179be2546bc30 (diff)
downloadembtoolkit-a178107530301d12cb5f16762a890fc0dea4d253.tar.gz
embtoolkit-a178107530301d12cb5f16762a890fc0dea4d253.tar.bz2
embtoolkit-a178107530301d12cb5f16762a890fc0dea4d253.tar.xz
Rootfs: squashfs: fix install error when usr/bin does not exist
Signed-off-by: Abdoulaye Walsimou Gaye <walsimou@walsimou.com>
-rw-r--r--mk/squashfs.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/squashfs.mk b/mk/squashfs.mk
index b9d979e..46d702a 100644
--- a/mk/squashfs.mk
+++ b/mk/squashfs.mk
@@ -36,9 +36,10 @@ $(SQUASHFS_HOST_BUILD_DIR)/.installed: download_squashfs \
$(SQUASHFS_HOST_BUILD_DIR)/.decompressed
@CC=$(HOSTCC_CACHED) \
$(MAKE) -C $(TOOLS_BUILD)/squashfs$(SQUASHFS_VERSION)/squashfs-tools
- @cp $(TOOLS_BUILD)/squashfs$(SQUASHFS_VERSION)/squashfs-tools/\
+ test -z $(HOSTTOOLS)/usr/bin || mkdir -p $(HOSTTOOLS)/usr/bin
+ @install $(TOOLS_BUILD)/squashfs$(SQUASHFS_VERSION)/squashfs-tools/\
mksquashfs $(HOSTTOOLS)/usr/bin/
- @cp $(TOOLS_BUILD)/squashfs$(SQUASHFS_VERSION)/squashfs-tools/\
+ @install $(TOOLS_BUILD)/squashfs$(SQUASHFS_VERSION)/squashfs-tools/\
unsquashfs $(HOSTTOOLS)/usr/bin/
@touch $@