3 include $(TOPDIR)/rules.mk
5 PKG_NAME := base-files-arch
7 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
9 include $(TOPDIR)/package/rules.mk
11 IDIR_OPENWRT:=$(PKG_BUILD_DIR)/ipkg
12 IPKG_OPENWRT:=$(PACKAGE_DIR)/base-files-$(BOARD)_$(PKG_RELEASE)_$(ARCH).ipk
14 $(PKG_BUILD_DIR)/.prepared:
15 mkdir -p $(PKG_BUILD_DIR)
19 $(PKG_BUILD_DIR)/jffs2root: jffs2root.c
22 $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/jffs2root
24 $(IDIR_OPENWRT)/sbin/jffs2root:
25 mkdir -p $(IDIR_OPENWRT)/sbin
26 cp $(PKG_BUILD_DIR)/jffs2root $(IDIR_OPENWRT)/sbin
28 $(IPKG_OPENWRT): $(IDIR_OPENWRT)/sbin/jffs2root
31 $(PKG_BUILD_DIR)/.built:
35 $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_OPENWRT) ipkg/base-files-arch.control $(PKG_RELEASE) $(ARCH)
36 $(SED) s,base-files-arch,base-files-$(BOARD),g $(IDIR_OPENWRT)/CONTROL/control
38 $(IPKG_OPENWRT): $(IDIR_OPENWRT)
39 mkdir -p $(IDIR_OPENWRT)/etc
40 cp files/network.overrides.$(BOARD) $(IDIR_OPENWRT)/etc/network.overrides
41 $(RSTRIP) $(IDIR_OPENWRT)
42 $(IPKG_BUILD) $(IDIR_OPENWRT) $(PACKAGE_DIR)
44 install: $(IPKG_OPENWRT)
45 $(IPKG) install $(IPKG_OPENWRT)
46 compile: install-dev $(IPKG_OPENWRT)
48 mkdir -p $(STAGING_DIR)/usr/include
49 cp -a ./include/* $(STAGING_DIR)/usr/include/