1 include $(TOPDIR
)/rules.mk
3 KDIR
:=$(BUILD_DIR
)/linux-
$(KERNEL
)-$(BOARD
)
5 ifeq ($(CONFIG_TARGET_ROOTFS_JFFS2
),y
)
9 ifeq ($(CONFIG_TARGET_ROOTFS_SQUASHFS_LZMA
),y
)
13 ifeq ($(CONFIG_TARGET_ROOTFS_TGZ
),y
)
18 $(MAKE
) prepare-targets
20 $(MAKE
) compile-targets
22 $(MAKE
) install-targets
24 $(BOARD
)-compile
: FORCE
25 $(MAKE
) -C
$(BOARD
) prepare
26 $(MAKE
) -C
$(BOARD
) compile
29 -$(MAKE
) -C
$(BOARD
) IB_DIR
="$(IB_DIR)" install-ib
30 mkdir
-p
$(IB_DIR
)/build_
$(ARCH
)/linux-
$(KERNEL
)-$(BOARD
)
31 $(CP
) $(BUILD_DIR
)/linux-
$(KERNEL
)-$(BOARD
)/kernel
[-_
]*.ipk
$(IB_DIR
)/build_
$(ARCH
)/linux-
$(KERNEL
)-$(BOARD
)/
33 install-prepare
: FORCE
34 find
$(BUILD_DIR
)/root
-type f
-not
-perm
+0100 | xargs chmod
0644
35 find
$(BUILD_DIR
)/root
-type f
-perm
+0100 | xargs chmod
0755
36 find
$(BUILD_DIR
)/root
-type d | xargs chmod
0755
37 mkdir
-p
$(BUILD_DIR
)/root
/tmp
38 chmod
0777 $(BUILD_DIR
)/root
/tmp
40 rebuild
: clean prepare compile
install