2 # Copyright (C) 2006-2009 OpenWrt.org
3 # Copyright 2010 Vertical Communications
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_NAME
)
16 include $(INCLUDE_DIR
)/package.mk
18 define Package
/block-mount
/Default
23 define Package
/block-mount
24 $(call Package
/block-mount
/Default
)
25 TITLE
:=Block device mounting and checking
28 define Package
/block-mount
/config
29 select BUSYBOX_CONFIG_MKSWAP
30 select BUSYBOX_CONFIG_FEATURE_MKSWAP_UUID
31 select BUSYBOX_CONFIG_SWAPONOFF
32 select BUSYBOX_CONFIG_BLKID
33 select BUSYBOX_CONFIG_FEATURE_VOLUMEID_EXT
34 select BUSYBOX_CONFIG_FEATURE_VOLUMEID_REISERFS
35 select BUSYBOX_CONFIG_FEATURE_VOLUMEID_FAT
36 select BUSYBOX_CONFIG_FEATURE_VOLUMEID_HFS
37 select BUSYBOX_CONFIG_FEATURE_VOLUMEID_JFS
38 select BUSYBOX_CONFIG_FEATURE_VOLUMEID_XFS
39 select BUSYBOX_CONFIG_FEATURE_VOLUMEID_NTFS
40 select BUSYBOX_CONFIG_FEATURE_VOLUMEID_SYSV
41 select BUSYBOX_CONFIG_FEATURE_VOLUMEID_OCFS2
42 select BUSYBOX_CONFIG_FEATURE_VOLUMEID_ISO9660
43 select BUSYBOX_CONFIG_FEATURE_VOLUMEID_UDF
44 select BUSYBOX_CONFIG_FEATURE_VOLUMEID_LINUXSWAP
45 select BUSYBOX_CONFIG_FEATURE_VOLUMEID_CRAMFS
46 select BUSYBOX_CONFIG_FEATURE_VOLUMEID_ROMFS
49 define Package
/block-mount
/description
50 Scripts used to mount and
check block devices
(filesystems and swap
)
53 define Package
/block-hotplug
54 $(call Package
/block-mount
/Default
)
55 TITLE
:=Automount and autocheck block devices
56 DEPENDS
:=block-mount hotplug2
59 define Package
/block-hotplug
/description
60 Scripts used to automatically
check and mount filesystem and
/or swap
66 define Package
/block-mount
/install
67 $(INSTALL_DIR
) $(1)/etc
/init.d
68 $(INSTALL_BIN
) .
/files
/fstab.init
$(1)/etc
/init.d
/fstab
69 $(INSTALL_DIR
) $(1)/etc
/config
70 $(INSTALL_DATA
) .
/files
/fstab.config
$(1)/etc
/config
/fstab
71 $(INSTALL_DIR
) $(1)/lib
/functions
72 $(INSTALL_DATA
) .
/files
/mount.sh
$(1)/lib
/functions
/
73 $(INSTALL_DATA
) .
/files
/fsck.sh
$(1)/lib
/functions
/
74 $(INSTALL_DATA
) .
/files
/block.sh
$(1)/lib
/functions
/
77 define Package
/block-hotplug
/install
78 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/block
79 $(INSTALL_DATA
) .
/files
/10-swap
$(1)/etc
/hotplug.d
/block
/
80 $(INSTALL_DATA
) .
/files
/20-fsck
$(1)/etc
/hotplug.d
/block
/
81 $(INSTALL_DATA
) .
/files
/40-mount
$(1)/etc
/hotplug.d
/block
/
84 $(eval
$(call BuildPackage
,block-mount
))
85 $(eval
$(call BuildPackage
,block-hotplug
))