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

freewrt_1_0 freewrt_2_0
Last change on this file since e4ba301 was e4ba301, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago
  • add a specific preinit.arch which executes brcm specific stuff
  • for squashfs based images, use mini_fo as default, no ugly symlinks anymore
  • add a "version" command, which can be used later, to exactly know which FreeWRT version is used (good for postinst scripts and bugreports), some users like to recreate the shell banner, but still need to know which version is used
  • remove nvram sepcific stuff from some of the startup scripts, like syslogd startup params
  • add some checks if ldd / arp is installed in /etc/profile

git-svn-id: svn://www.freewrt.org/trunk/freewrt@182 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 ($(BR2_TARGET_ROOTFS_JFFS2),y)
6include ./jffs2.mk
7endif
8
9ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS_LZMA),y)
10include ./squashfs.mk
11endif
12
13ifeq ($(BR2_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.