Changeset 3328
- Timestamp:
- 07/23/07 17:27:07 (1 year ago)
- Files:
-
- trunk/freewrt/mk/build.mk (modified) (2 diffs)
- trunk/freewrt/mk/kernel-build.mk (modified) (1 diff)
- trunk/freewrt/mk/targets.mk (modified) (2 diffs)
- trunk/freewrt/scripts/instprep.sh (modified) (5 diffs)
- trunk/freewrt/target/Config.in (modified) (1 diff)
- trunk/freewrt/target/Makefile (modified) (2 diffs)
- trunk/freewrt/target/image/brcm/Makefile (modified) (1 diff)
- trunk/freewrt/target/image/common.mk (modified) (1 diff)
- trunk/freewrt/target/image/initramfs.mk (added)
- trunk/freewrt/target/image/rb/Makefile (modified) (2 diffs)
- trunk/freewrt/target/image/x86/Makefile (modified) (4 diffs)
- trunk/freewrt/target/linux/Makefile (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/freewrt/mk/build.mk
r3327 r3328 43 43 world: $(DISTDIR) $(BUILD_DIR) $(PACKAGE_DIR) ${TOPDIR}/.cfg/FWRT_HAVE_DOT_CONFIG 44 44 BASH='${BASH}' ${MBSH} ${TOPDIR}/scripts/scan-pkgs.sh 45 ifneq ($(strip ${FWRT_TARGET_NOKERNEL}) $(strip ${FWRT_TARGET_ROOTFS_INITRAMFS}),)45 ifneq ($(strip ${FWRT_TARGET_NOKERNEL}),) 46 46 ifeq ($(strip ${FWRT_PACKAGE_BASE_FILES}),m) 47 47 $(MAKE) -f mk/build.mk tools/install toolchain/install target/config-prepare package/compile package_index … … 49 49 $(MAKE) -f mk/build.mk tools/install toolchain/install target/config-prepare package/compile package_index root_clean package/install 50 50 endif 51 else ifneq ($(strip ${FWRT_TARGET_ROOTFS_INITRAMFS}),) 52 $(MAKE) -f mk/build.mk tools/install toolchain/install target/config-prepare package/compile root_clean package/install target/install 51 53 else ifeq ($(strip ${FWRT_PACKAGE_BASE_FILES}),m) 52 54 $(MAKE) -f mk/build.mk tools/install toolchain/install target/config-prepare target/compile package/compile trunk/freewrt/mk/kernel-build.mk
r3082 r3328 96 96 endif 97 97 98 noinstall: 99 rm -rf ${LINUX_BUILD_DIR}/root* 100 cd ${BUILD_DIR} && pax -rw -pe root ${LINUX_BUILD_DIR}/ 101 printf '%s\n%s\n' 'dest root /' \ 102 'option offline_root $(LINUX_BUILD_DIR)/root' \ 103 >$(LINUX_BUILD_DIR)/ipkg.conf 104 98 105 clean: 99 106 rm -rf $(LINUX_BUILD_DIR) trunk/freewrt/mk/targets.mk
r3051 r3328 29 29 $(MAKE) -C $(2)-$(1) BOARD="$(2)" DEVICE="$(3)" install 30 30 31 $(1)/$(2)/$(3)-noinstall: 32 @$(TRACE) target/linux/$(2)-$(1)-noinstall 33 $(MAKE) -C $(2)-$(1) BOARD="$(2)" DEVICE="$(3)" noinstall 34 31 35 ifeq ($(FWRT_LINUX_$(4)),y) 32 36 clean: $(1)/$(2)/$(3)-clean … … 34 38 compile: $(1)/$(2)/$(3)-compile 35 39 install: $(1)/$(2)/$(3)-install 40 noinstall: $(1)/$(2)/$(3)-noinstall 36 41 endif 37 42 trunk/freewrt/scripts/instprep.sh
r3153 r3328 22 22 fi 23 23 } 24 24 25 help_quit() { # () 25 26 echo "Usage:" … … 31 32 } 32 33 33 [ $# -gt 0 ] && { echo "Too many arguments!"; help_quit;} 34 [ "$ID" -ne 0 ] && { echo "You need to be root to run me!"; help_quit;} 34 if [ $# -gt 0 ]; then 35 echo "Too many arguments!" 36 help_quit 37 fi 38 39 case $ID:$MYTARGET in 40 *:initramfs) ;; 41 0:*) ;; 42 *) 43 echo "You need to be root to run me!" 44 help_quit 45 ;; 46 esac 35 47 36 48 # go to a defined place … … 38 50 39 51 case $MYTARGET in 40 ext2-cf|nfs )52 ext2-cf|nfs|initramfs) 41 53 echo "creating device nodes" 42 54 makenode 0666 dev/null c 1 3 … … 73 85 esac 74 86 75 echo "recursively fixing ownership" 76 chown -R 0:0 * 87 case $MYTARGET in 88 initramfs) ;; 89 *) 90 echo "recursively fixing ownership" 91 chown -R 0:0 * 92 ;; 93 esac 77 94 78 95 echo "fixing /tmp permissions" 79 chmod 1777 tmp /96 chmod 1777 tmp 80 97 81 98 echo "setting busybox setuid" … … 83 100 84 101 exit 0 85 trunk/freewrt/target/Config.in
r3234 r3328 271 271 config FWRT_TARGET_ROOTFS_INITRAMFS 272 272 bool "initramfs image (cpio archive)" 273 depends on FWRT_LINUX_2_6_X86_CRYPTOTOKEN 273 depends on FWRT_LINUX_2_6_X86_CRYPTOTOKEN || \ 274 (FWRT_DEVEL && FWRT_LINUX_2_6) 274 275 help 275 276 create a initramfs only. trunk/freewrt/target/Makefile
r3324 r3328 40 40 prepare: linux-prepare 41 41 compile: linux-compile 42 ifneq ($(strip ${FWRT_TARGET_NOKERNEL})$(strip ${FWRT_TARGET_ROOTFS_INITRAMFS}),) 43 install: image_clean linux-noinstall image_install 44 else 42 45 install: image_clean linux-install image_install 46 endif 43 47 clean: linux-clean image_clean 44 48 … … 62 66 $(TRACE) target/$(patsubst %-install,%,$@)-install 63 67 $(MAKE) -C $(patsubst %-install,%,$@) install 68 %-noinstall: 69 $(TRACE) target/$(patsubst %-noinstall,%,$@)-noinstall 70 $(MAKE) -C $(patsubst %-noinstall,%,$@) noinstall trunk/freewrt/target/image/brcm/Makefile
r2762 r3328 225 225 endif 226 226 227 ifneq ($(strip ${FWRT_LINUX_2_6}),) 228 include ../initramfs.mk 229 endif 227 230 include ${TOPDIR}/target/image/common.mk trunk/freewrt/target/image/common.mk
r2322 r3328 7 7 install-prepare_DEPS?= 8 8 9 install-prepare: ${install-prepare_DEPS} install-prepare-mi-pre \ 10 install-prepare-md install-prepare-mi-post 9 install-prepare: install-prepare-dirs ${install-prepare_DEPS} \ 10 install-prepare-mi-pre install-prepare-md install-prepare-mi-post 11 12 install-prepare-dirs: 13 mkdir -p ${KDIR}/root 11 14 12 15 install-prepare-mi-pre: trunk/freewrt/target/image/rb/Makefile
r2832 r3328 23 23 install -m 0755 $(BUILD_DIR)/linux/vmlinux $(KDIR)/root/kernel 24 24 25 install-prepare_DEPS= instprep-script kernel-install 25 install-prepare_DEPS+= instprep-script install-prepare 26 ifeq ($(strip ${FWRT_TARGET_NOKERNEL})$(strip ${FWRT_TARGET_ROOTFS_INITRAMFS}),) 27 install-prepare_DEPS+= kernel-install 28 endif 26 29 27 30 install-prepare-md: … … 89 92 endif 90 93 94 ifneq ($(strip ${FWRT_LINUX_2_6}),) 95 include ../initramfs.mk 96 endif 91 97 include ${TOPDIR}/target/image/common.mk trunk/freewrt/target/image/x86/Makefile
r2571 r3328 11 11 INSTPREPSCRIPT = instprep.sh 12 12 ROOTFSTARBALL = $(FWRT_PREFIX)-$(DEVICE)-$(BOARD)-$(KERNEL)-$(FS).tar.gz 13 INITRAMFS = $(FWRT_PREFIX)-$(DEVICE)-$(BOARD)-$(KERNEL)-$(FS).gz14 13 CF_DOC_URL = https://www.freewrt.org/trac/wiki/Documentation/Filesystems/CompactFlash 15 14 … … 19 18 install -m 0755 $(TOPDIR)/scripts/$(INSTPREPSCRIPT) $(KDIR)/root/instprep.sh 20 19 $(SED) 's/@@TARGET_FS@@/$(FS)/' $(KDIR)/root/instprep.sh 21 20 22 21 kernel-install: 23 22 cp $(LINUX_DIR)/arch/i386/boot/bzImage $(KDIR)/root/kernel … … 32 31 $(BIN_DIR)/$(ROOTFSTARBALL): $(KDIR)/root instprep-script 33 32 (cd $(KDIR)/root ; tar cf - * | gzip -9 > $(BIN_DIR)/$(ROOTFSTARBALL)) 34 35 $(BIN_DIR)/$(INITRAMFS): $(KDIR)/root36 (cd $(KDIR)/root ; find . | cpio -o -H newc | gzip > $(BIN_DIR)/$(INITRAMFS))37 38 ifeq ($(FS),initramfs)39 install: $(BIN_DIR)/$(INITRAMFS)40 @echo41 @echo "The initramfs is: $(BIN_DIR)/$(INITRAMFS)"42 endif43 33 44 34 ifeq ($(FS),ext2-cf) … … 60 50 endif 61 51 52 ifneq ($(strip ${FWRT_LINUX_2_6}),) 53 include ../initramfs.mk 54 endif 62 55 include ${TOPDIR}/target/image/common.mk trunk/freewrt/target/linux/Makefile
r2504 r3328 11 11 include $(TOPDIR)/mk/targets.mk 12 12 13 .PHONY: clean prepare compile install 13 .PHONY: clean prepare compile install noinstall 14 14 15 15 clean: … … 17 17 compile: 18 18 install: 19 noinstall:


