fix root filesystem path
SVN-Revision: 3871
This commit is contained in:
parent
b41a642e43
commit
c417ce482d
4 changed files with 12 additions and 12 deletions
|
@ -33,11 +33,11 @@ install-ib:
|
||||||
$(CP) $(BUILD_DIR)/linux-$(KERNEL)-$(BOARD)/kernel[-_]*.ipk $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)/
|
$(CP) $(BUILD_DIR)/linux-$(KERNEL)-$(BOARD)/kernel[-_]*.ipk $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)/
|
||||||
|
|
||||||
install-prepare:
|
install-prepare:
|
||||||
find $(KDIR)/root -type f -not -perm +0100 | xargs chmod 0644
|
find $(BUILD_DIR)/root -type f -not -perm +0100 | xargs chmod 0644
|
||||||
find $(KDIR)/root -type f -perm +0100 | xargs chmod 0755
|
find $(BUILD_DIR)/root -type f -perm +0100 | xargs chmod 0755
|
||||||
find $(KDIR)/root -type d | xargs chmod 0755
|
find $(BUILD_DIR)/root -type d | xargs chmod 0755
|
||||||
mkdir -p $(KDIR)/root/tmp
|
mkdir -p $(BUILD_DIR)/root/tmp
|
||||||
chmod 0777 $(KDIR)/root/tmp
|
chmod 0777 $(BUILD_DIR)/root/tmp
|
||||||
|
|
||||||
rebuild: clean prepare compile install
|
rebuild: clean prepare compile install
|
||||||
clean:
|
clean:
|
||||||
|
|
|
@ -17,12 +17,12 @@ jffs2-clean:
|
||||||
rm -f $(KDIR)/root.jffs2*
|
rm -f $(KDIR)/root.jffs2*
|
||||||
|
|
||||||
$(KDIR)/root.jffs2-4MB: install-prepare
|
$(KDIR)/root.jffs2-4MB: install-prepare
|
||||||
@rm -rf $(KDIR)/root/jffs
|
@rm -rf $(BUILD_DIR)/root/jffs
|
||||||
$(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e 0x10000 -o $@ -d $(KDIR)/root
|
$(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e 0x10000 -o $@ -d $(BUILD_DIR)/root
|
||||||
|
|
||||||
$(KDIR)/root.jffs2-8MB: install-prepare
|
$(KDIR)/root.jffs2-8MB: install-prepare
|
||||||
@rm -rf $(KDIR)/root/jffs
|
@rm -rf $(BUILD_DIR)/root/jffs
|
||||||
$(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e 0x20000 -o $@ -d $(KDIR)/root
|
$(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e 0x20000 -o $@ -d $(BUILD_DIR)/root
|
||||||
|
|
||||||
ifeq ($(IB),)
|
ifeq ($(IB),)
|
||||||
jffs2-install: compile-targets $(BOARD)-compile
|
jffs2-install: compile-targets $(BOARD)-compile
|
||||||
|
|
|
@ -15,8 +15,8 @@ squashfs-clean:
|
||||||
rm -f $(KDIR)/root.squashfs
|
rm -f $(KDIR)/root.squashfs
|
||||||
|
|
||||||
$(KDIR)/root.squashfs: install-prepare
|
$(KDIR)/root.squashfs: install-prepare
|
||||||
@mkdir -p $(KDIR)/root/jffs
|
@mkdir -p $(BUILD_DIR)/root/jffs
|
||||||
$(STAGING_DIR)/bin/mksquashfs-lzma $(KDIR)/root $@ -nopad -noappend -root-owned -$(endian)
|
$(STAGING_DIR)/bin/mksquashfs-lzma $(BUILD_DIR)/root $@ -nopad -noappend -root-owned -$(endian)
|
||||||
|
|
||||||
ifeq ($(IB),)
|
ifeq ($(IB),)
|
||||||
squashfs-install: compile-targets $(BOARD)-compile
|
squashfs-install: compile-targets $(BOARD)-compile
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
$(KDIR)/root.tar.gz:
|
$(KDIR)/root.tar.gz:
|
||||||
tar -zcf $@ --owner=root --group=root -C $(KDIR)/root/ .
|
tar -zcf $@ --owner=root --group=root -C $(BUILD_DIR)/root/ .
|
||||||
|
|
||||||
ifeq ($(BOARD),x86)
|
ifeq ($(BOARD),x86)
|
||||||
install: tgz-install
|
install: tgz-install
|
||||||
|
|
Loading…
Reference in a new issue