1 include $(TOPDIR
)/rules.mk
3 KDIR
:=$(BUILD_DIR
)/linux-
$(KERNEL
)-$(BOARD
)
5 ifeq ($(BR2_TARGET_ROOTFS_JFFS2
),y
)
9 ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS_LZMA
),y
)
13 ifeq ($(BR2_TARGET_ROOTFS_TGZ
),y
)
18 @
$(PKG_TRACE
) Preparing...
19 $(MAKE
) prepare-targets
$(MAKE_TRACE
)
21 @
$(PKG_TRACE
) Compiling...
22 $(MAKE
) compile-targets
$(MAKE_TRACE
)
24 @
$(PKG_TRACE
) Installing...
25 $(MAKE
) install-targets
$(MAKE_TRACE
)
27 .PHONY
: prepare compile
install
30 @
$(TRACE
) target
/linux
/image
/$(BOARD
)/prepare
31 $(MAKE
) -C
$(BOARD
) prepare
32 @
$(TRACE
) target
/linux
/image
/$(BOARD
)/compile
33 $(MAKE
) -C
$(BOARD
) compile
36 @
$(TRACE
) target
/linux
/image
/$(BOARD
)/install-ib
37 -$(MAKE
) -C
$(BOARD
) IB_DIR
="$(IB_DIR)" install-ib
38 mkdir
-p
$(IB_DIR
)/build_
$(ARCH
)/linux-
$(KERNEL
)-$(BOARD
)
39 cp
$(BUILD_DIR
)/linux-
$(KERNEL
)-$(BOARD
)/kernel
[-_
]*.ipk
$(IB_DIR
)/build_
$(ARCH
)/linux-
$(KERNEL
)-$(BOARD
)/
42 find
$(KDIR
)/root
-type f
-not
-perm
+0100 | xargs chmod
0644
43 find
$(KDIR
)/root
-type f
-perm
+0100 | xargs chmod
0755
44 find
$(KDIR
)/root
-type d | xargs chmod
0755
45 chmod
0777 $(KDIR
)/root
/tmp
47 rebuild
: clean prepare compile
install
49 @
$(PKG_TRACE
) Cleaning...
50 $(MAKE
) clean-targets
$(MAKE_TRACE
)