source: freewrt/target/linux/image/Makefile@ 141418f

freewrt_1_0 freewrt_2_0
Last change on this file since 141418f was 141418f, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago
  • remove some obsolete firewall config stuff
  • add old-style network configuration based on nvram
  • add new rc.conf file to configure which services should be started on startup, bsd-ish behavior
  • disable firewall by default in rc.conf, remote update via ssh is now possible. port 22 is open by default on wan side
  • enable suid bit on busybox and add a "admin" user
  • ssh via root is disabled (dropbear -w)
  • default password for "admin" is "FreeWRT", as well as for root please change directly after installation
  • remove telnetd from startup, will be used only for failsafe

git-svn-id: svn://www.freewrt.org/trunk/freewrt@181 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 4775 $(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.