mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-29 21:04:06 +02:00
fix permissions on image build
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1977 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
cd7400daf4
commit
9ad94d5fa7
@ -25,6 +25,12 @@ install-ib:
|
|||||||
mkdir -p $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)
|
mkdir -p $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)
|
||||||
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:
|
||||||
|
find $(KDIR)/root -type f -not -perm +0100 | xargs chmod 0644
|
||||||
|
find $(KDIR)/root -type f -perm +0100 | xargs chmod 0755
|
||||||
|
find $(KDIR)/root -type d | xargs chmod 0755
|
||||||
|
chmod 0777 $(KDIR)/root/tmp
|
||||||
|
|
||||||
rebuild: clean prepare compile install
|
rebuild: clean prepare compile install
|
||||||
clean:
|
clean:
|
||||||
|
|
||||||
|
@ -11,11 +11,11 @@ jffs2-clean:
|
|||||||
$(MAKE) -C jffs2 clean
|
$(MAKE) -C jffs2 clean
|
||||||
rm -f $(KDIR)/root.jffs2*
|
rm -f $(KDIR)/root.jffs2*
|
||||||
|
|
||||||
$(KDIR)/root.jffs2-4MB:
|
$(KDIR)/root.jffs2-4MB: install-prepare
|
||||||
@rm -rf $(KDIR)/root/jffs
|
@rm -rf $(KDIR)/root/jffs
|
||||||
$(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e 0x10000 -o $@ -d $(KDIR)/root
|
$(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e 0x10000 -o $@ -d $(KDIR)/root
|
||||||
|
|
||||||
$(KDIR)/root.jffs2-8MB:
|
$(KDIR)/root.jffs2-8MB: install-prepare
|
||||||
@rm -rf $(KDIR)/root/jffs
|
@rm -rf $(KDIR)/root/jffs
|
||||||
$(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e 0x20000 -o $@ -d $(KDIR)/root
|
$(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e 0x20000 -o $@ -d $(KDIR)/root
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ squashfs-clean:
|
|||||||
$(MAKE) -C squashfs clean
|
$(MAKE) -C squashfs clean
|
||||||
rm -f $(KDIR)/root.squashfs
|
rm -f $(KDIR)/root.squashfs
|
||||||
|
|
||||||
$(KDIR)/root.squashfs:
|
$(KDIR)/root.squashfs: install-prepare
|
||||||
@mkdir -p $(KDIR)/root/jffs
|
@mkdir -p $(KDIR)/root/jffs
|
||||||
$(STAGING_DIR)/bin/mksquashfs-lzma $(KDIR)/root $@ -nopad -noappend -root-owned -le
|
$(STAGING_DIR)/bin/mksquashfs-lzma $(KDIR)/root $@ -nopad -noappend -root-owned -le
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user