source: freewrt/target/linux/image/Makefile@ a3abab6

freewrt_1_0 freewrt_2_0
Last change on this file since a3abab6 was c04ece1, checked in by Thorsten Glaser <tg@…>, 19 years ago

as discussed with wbx@ some 2-3 weeks ago, change
the BR2_ prefix to FWRT_

tested with a standard build (only the squashfs
image since the jffs2 didn't get built)

git-svn-id: svn://www.freewrt.org/trunk/freewrt@360 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.2 KB
Line 
1include $(TOPDIR)/rules.mk
2
3KDIR:=$(BUILD_DIR)/linux-$(KERNEL)-$(BOARD)
4
5ifeq ($(FWRT_TARGET_ROOTFS_JFFS2),y)
6include ./jffs2.mk
7endif
8
9ifeq ($(FWRT_TARGET_ROOTFS_SQUASHFS_LZMA),y)
10include ./squashfs.mk
11endif
12
13ifeq ($(FWRT_TARGET_ROOTFS_TGZ),y)
14include ./tgz.mk
15endif
16
17prepare:
18 $(MAKE) prepare-targets $(MAKE_TRACE)
19compile:
20 $(MAKE) compile-targets $(MAKE_TRACE)
21install:
22 $(MAKE) install-targets $(MAKE_TRACE)
23
24.PHONY: prepare compile install
25
26$(BOARD)-compile:
27 @$(TRACE) target/linux/image/$(BOARD)-prepare
28 $(MAKE) -C $(BOARD) prepare
29 @$(TRACE) target/linux/image/$(BOARD)-compile
30 $(MAKE) -C $(BOARD) compile
31
32install-ib:
33 @$(TRACE) target/linux/image/$(BOARD)-install-ib
34 -$(MAKE) -C $(BOARD) IB_DIR="$(IB_DIR)" install-ib
35 mkdir -p $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)
36 $(CP) $(BUILD_DIR)/linux-$(KERNEL)-$(BOARD)/kernel[-_]*.ipk $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)/
37
38install-prepare:
39 find $(KDIR)/root -type f ! -perm -0100 | xargs chmod 0644
40 find $(KDIR)/root -type f -perm -0100 | xargs chmod 0755
41 find $(KDIR)/root -type d | xargs chmod 0755
42 chmod 4755 $(KDIR)/root/bin/busybox
43 mkdir -p $(KDIR)/root/tmp
44 chmod 0777 $(KDIR)/root/tmp
45
46rebuild: clean prepare compile install
47clean:
48 $(MAKE) clean-targets $(MAKE_TRACE)
Note: See TracBrowser for help on using the repository browser.