1 include $(TOPDIR
)/rules.mk
3 KDIR
:=$(BUILD_DIR
)/linux-
$(KERNEL
)-$(BOARD
)
5 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS
),y
)
6 ifeq ($(CONFIG_TARGET_ROOTFS_JFFS2
),y
)
7 include $(TOPDIR
)/target
/linux
/image
/jffs2.mk
10 ifeq ($(CONFIG_TARGET_ROOTFS_SQUASHFS_LZMA
),y
)
11 include $(TOPDIR
)/target
/linux
/image
/squashfs.mk
14 ifeq ($(CONFIG_TARGET_ROOTFS_TGZ
),y
)
15 include $(TOPDIR
)/target
/linux
/image
/tgz.mk
19 define Image
/mkfs
/prepare
/default
20 find
$(BUILD_DIR
)/root
-type f
-not
-perm
+0100 | xargs chmod
0644
21 find
$(BUILD_DIR
)/root
-type f
-perm
+0100 | xargs chmod
0755
22 find
$(BUILD_DIR
)/root
-type d | xargs chmod
0755
23 mkdir
-p
$(BUILD_DIR
)/root
/tmp
24 chmod
0777 $(BUILD_DIR
)/root
/tmp
27 define Image
/mkfs
/prepare
28 $(call Image
/mkfs
/prepare
/default
)
37 $(call Image
/mkfs
/prepare
)
38 $(call Image
/BuildKernel
)
39 $(call Image
/mkfs
/jffs2
)
40 $(call Image
/mkfs
/squashfs
)
41 $(call Image
/mkfs
/tgz
)
52 compile
: compile-targets
53 install: compile install-targets