summaryrefslogtreecommitdiff
path: root/target/ext2/ext2root.mk
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2006-04-10 17:48:53 +0000
committerEric Andersen <andersen@codepoet.org>2006-04-10 17:48:53 +0000
commit8cfa7aa9658e48d9113f7ed7da0c5994352fc8bf (patch)
treeb3ea36eb7b1240a4628b70ba2112cda9a88b7660 /target/ext2/ext2root.mk
parent5418a92350168fbdc1f07839c783cb70952ecc06 (diff)
As noted by jacmet in bug 824:
svn 14777 seems to have broken cramfs/squashfs/tarroot. The problem is that $(IMAGE) is the absolute path of the image including directories, so the build tries to access $(STAGING_DIR)/_fakeroot.</full/path/to/buildroot/directory> which doesn't exist. The fix is to define CRAMFS/SQUASHFS/TAR_TARGET as $(notdir $(IMAGE).<extension>) instead.
Diffstat (limited to 'target/ext2/ext2root.mk')
-rw-r--r--target/ext2/ext2root.mk22
1 files changed, 11 insertions, 11 deletions
diff --git a/target/ext2/ext2root.mk b/target/ext2/ext2root.mk
index bf2ae8353..75dce4775 100644
--- a/target/ext2/ext2root.mk
+++ b/target/ext2/ext2root.mk
@@ -72,17 +72,17 @@ $(EXT2_BASE): host-fakeroot makedevs genext2fs
@rm -rf $(TARGET_DIR)/usr/info
-/sbin/ldconfig -r $(TARGET_DIR) 2>/dev/null
# Use fakeroot to pretend all target binaries are owned by root
- rm -f $(STAGING_DIR)/_fakeroot.$(EXT2_TARGET)
+ rm -f $(STAGING_DIR)/_fakeroot.$(notdir $EXT2_TARGET)
touch $(STAGING_DIR)/.fakeroot.00000
- cat $(STAGING_DIR)/.fakeroot* > $(STAGING_DIR)/_fakeroot.$(EXT2_TARGET)
+ cat $(STAGING_DIR)/.fakeroot* > $(STAGING_DIR)/_fakeroot.$(notdir $EXT2_TARGET)
-$(STAGING_DIR)/usr/bin/fakeroot \
- -i $(STAGING_DIR)/_fakeroot.$(EXT2_TARGET) \
- -s $(STAGING_DIR)/_fakeroot.$(EXT2_TARGET) -- \
+ -i $(STAGING_DIR)/_fakeroot.$(notdir $EXT2_TARGET) \
+ -s $(STAGING_DIR)/_fakeroot.$(notdir $EXT2_TARGET) -- \
chown -R root:root $(TARGET_DIR)
# Use fakeroot to pretend to create all needed device nodes
$(STAGING_DIR)/usr/bin/fakeroot \
- -i $(STAGING_DIR)/_fakeroot.$(EXT2_TARGET) \
- -s $(STAGING_DIR)/_fakeroot.$(EXT2_TARGET) -- \
+ -i $(STAGING_DIR)/_fakeroot.$(notdir $EXT2_TARGET) \
+ -s $(STAGING_DIR)/_fakeroot.$(notdir $EXT2_TARGET) -- \
$(STAGING_DIR)/bin/makedevs -d $(TARGET_DEVICE_TABLE) $(TARGET_DIR)
# Use fakeroot so genext2fs believes the previous fakery
ifeq ($(strip $(BR2_TARGET_ROOTFS_EXT2_BLOCKS)),0)
@@ -93,8 +93,8 @@ ifeq ($(strip $(BR2_TARGET_ROOTFS_EXT2_BLOCKS)),0)
GENEXT2_INODES=`expr $$GENEXT2_ADDTOINODESIZE + 400`; \
set -x; \
$(STAGING_DIR)/usr/bin/fakeroot \
- -i $(STAGING_DIR)/_fakeroot.$(EXT2_TARGET) \
- -s $(STAGING_DIR)/_fakeroot.$(EXT2_TARGET) -- \
+ -i $(STAGING_DIR)/_fakeroot.$(notdir $EXT2_TARGET) \
+ -s $(STAGING_DIR)/_fakeroot.$(notdir $EXT2_TARGET) -- \
$(GENEXT2_DIR)/genext2fs \
-b $$GENEXT2_SIZE \
-i $$GENEXT2_INODES \
@@ -102,14 +102,14 @@ ifeq ($(strip $(BR2_TARGET_ROOTFS_EXT2_BLOCKS)),0)
$(EXT2_OPTS) $(EXT2_BASE)
else
$(STAGING_DIR)/usr/bin/fakeroot \
- -i $(STAGING_DIR)/_fakeroot.$(EXT2_TARGET) \
- -s $(STAGING_DIR)/_fakeroot.$(EXT2_TARGET) -- \
+ -i $(STAGING_DIR)/_fakeroot.$(notdir $EXT2_TARGET) \
+ -s $(STAGING_DIR)/_fakeroot.$(notdir $EXT2_TARGET) -- \
$(GENEXT2_DIR)/genext2fs \
-d $(TARGET_DIR) \
$(EXT2_OPTS) \
$(EXT2_BASE)
endif
- -@rm -f $(STAGING_DIR)/_fakeroot.$(EXT2_TARGET)
+ -@rm -f $(STAGING_DIR)/_fakeroot.$(notdir $EXT2_TARGET)
$(EXT2_BASE).gz: $(EXT2_BASE)
@gzip --best -fv $(EXT2_BASE)