Changeset c1918f0 in freewrt


Ignore:
Timestamp:
Jan 7, 2007, 3:34:17 AM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Children:
290734fd
Parents:
f15f901
Message:

move most magic for the "install-prepare" target into a
common makefile include; this also fixes permissions for
/tmp on brcm boards (were 0777, need to be 1777) as nice
side effect, probably has been a typo

git-svn-id: svn://www.freewrt.org/branches/common-adk@1500 afb5a338-a214-0410-bd46-81f09a774fd1

Location:
target/image
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • target/image/brcm/Makefile

    rf15f901 rc1918f0  
    2525        cp $^ $(BIN_DIR)/kernel/kernel-$(BOARD)-$(KERNEL)-$(DEVICE)-$(FS)       
    2626
    27 install-prepare:
    28         find $(KDIR)/root -type f ! -perm -0100 | xargs chmod 0644
    29         find $(KDIR)/root -type f -perm -0100 | xargs chmod 0755
    30         find $(KDIR)/root -type d | xargs chmod 0755
     27install-prepare-md:
    3128        -chmod 4755 $(KDIR)/root/bin/busybox
    32         mkdir -p $(KDIR)/root/tmp
    33         chmod 0777 $(KDIR)/root/tmp
    34         rng=/dev/arandom; test -e $$rng || rng=/dev/urandom; \
    35             dd if=$$rng bs=512 count=1 >>${KDIR}/root/etc/.rnd; \
    36             chmod 600 ${KDIR}/root/etc/.rnd
    3729
    3830ifneq ($(FWRT_BIG_ENDIAN),y)
     
    252244        @echo "package autobuild successful"
    253245endif
     246
     247include ${TOPDIR}/target/image/common.mk
  • target/image/rb/Makefile

    rf15f901 rc1918f0  
    2323        install -m 0755 $(KDIR)/vmlinux $(KDIR)/root/kernel
    2424
    25 install-prepare: instprep-script kernel-install
    26         find $(KDIR)/root -type f ! -perm -0100 | xargs chmod 0644
    27         find $(KDIR)/root -type f -perm -0100 | xargs chmod 0755
    28         find $(KDIR)/root -type d | xargs chmod 0755
     25install-prepare_DEPS=   instprep-script kernel-install
     26
     27install-prepare-md:
    2928        -chmod 4755 $(KDIR)/root/bin/busybox
    30         mkdir -p $(KDIR)/root/tmp
    31         chmod 1777 $(KDIR)/root/tmp
    32         rng=/dev/arandom; test -e $$rng || rng=/dev/urandom; \
    33             dd if=$$rng bs=512 count=1 >>${KDIR}/root/etc/.rnd; \
    34             chmod 600 ${KDIR}/root/etc/.rnd
    3529
    3630$(KDIR)/root: install-prepare kernel-install
     
    9488        @echo "will also copy over the kernel for you."
    9589endif
     90
     91include ${TOPDIR}/target/image/common.mk
Note: See TracChangeset for help on using the changeset viewer.