source: trunk/package/block-extroot/Makefile @ 23098

Last change on this file since 23098 was 23098, checked in by cshore, 6 years ago

[package] base/block-extroot: Move block-extroot in menuconfig from Utilities/disc to Base system

File size: 1.6 KB
Line 
1#
2# Copyright (C) 2009-2010 OpenWrt.org
3# Copyright (C) 2010 Vertical Communications
4#
5# This is free software, licensed under the GNU General Public License v2.
6# See /LICENSE for more information.
7#
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=block-extroot
12PKG_VERSION:=0.0.1
13PKG_RELEASE:=2
14
15PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
16
17include $(INCLUDE_DIR)/package.mk
18
19define Package/block-extroot/Default
20  SECTION:=base
21  CATEGORY:=Base system
22  TITLE:=root filesystem on secondary storage
23endef
24
25define Package/block-extroot
26  $(call Package/block-extroot/Default)
27  MENU:=1
28  DEPENDS:=+block-mount @PACKAGE_kmod-ide-core||PACKAGE_kmod-ata-core||PACKAGE_kmod-usb-storage||PACKAGE_kmod-mmc||PACKAGE_kmod-broadcom-sdhc
29endef
30
31define Package/block-extroot/config
32        source "$(SOURCE)/Config.in"
33endef
34
35define Package/block-extroot/description
36  Based on the moduluarized preinit and firstboot, adds the option to have
37  the root filesystem on storage other than the jffs or the boot root device.
38  For a squashfs image this package must be installed into the image, not as
39  a package to add later.
40endef
41
42define Build/Prepare
43endef
44
45define Build/Configure
46endef
47
48define Build/Compile
49endef
50
51define Package/block-extroot/install
52        $(INSTALL_DIR) $(1)/lib/functions
53        $(INSTALL_DATA) ./files/extmount.sh $(1)/lib/functions/
54        $(INSTALL_DIR) $(1)/lib/preinit
55        $(INSTALL_DATA) ./files/50_determine_usb_root $(1)/lib/preinit/
56        $(INSTALL_DATA) ./files/60_pivot_usb_root $(1)/lib/preinit/
57        $(INSTALL_DIR) $(1)/lib/preinit
58        echo "extroot_settle_time=\"$(CONFIG_EXTROOT_SETTLETIME)\"" >$(1)/lib/preinit/00_extroot.conf
59        $(INSTALL_DIR) $(1)/overlay
60endef
61
62$(eval $(call BuildPackage,block-extroot))
63
Note: See TracBrowser for help on using the repository browser.