finally fix ar7 image builder
[openwrt.git] / target / linux / image / Makefile
1 include $(TOPDIR)/rules.mk
2
3 KDIR:=$(BUILD_DIR)/linux-$(KERNEL)-$(BOARD)
4
5 ifeq ($(BR2_TARGET_ROOTFS_JFFS2),y)
6 include ./jffs2.mk
7 endif
8
9 ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS_LZMA),y)
10 include ./squashfs.mk
11 endif
12
13 ifeq ($(BR2_TARGET_ROOTFS_TGZ),y)
14 include ./tgz.mk
15 endif
16
17 prepare:
18 compile:
19 install:
20 $(MAKE) -C $(BOARD) prepare
21 $(MAKE) -C $(BOARD) compile
22
23 install-ib:
24 -$(MAKE) -C $(BOARD) IB_DIR="$(IB_DIR)" install-ib
25 mkdir -p $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)
26 cp $(BUILD_DIR)/linux-$(KERNEL)-$(BOARD)/kernel[-_]*.ipk $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)/
27
28 install-prepare:
29 find $(KDIR)/root -type f -not -perm +0100 | xargs chmod 0644
30 find $(KDIR)/root -type f -perm +0100 | xargs chmod 0755
31 find $(KDIR)/root -type d | xargs chmod 0755
32 chmod 0777 $(KDIR)/root/tmp
33
34 rebuild: clean prepare compile install
35 clean:
36
This page took 0.040254 seconds and 5 git commands to generate.