1 include $(TOPDIR)/rules.mk
4 PKG_VERSION:=2013-07-02
5 PKG_RELEASE=$(PKG_SOURCE_VERSION)
8 PKG_SOURCE_URL:=git://nbd.name/luci2/ubox.git
9 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
10 PKG_SOURCE_VERSION:=267dd987b1aec750f8839d1d8d8c2f80d9f1107e
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
17 PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
19 include $(INCLUDE_DIR)/package.mk
20 include $(INCLUDE_DIR)/cmake.mk
22 TARGET_LDFLAGS += $(if $(CONFIG_USE_EGLIBC),-lrt)
27 DEPENDS:=+libubox +ubusd +ubus +libuci +USE_EGLIBC:librt
28 TITLE:=OpenWrt system helper toolbox
31 define Package/block-mount
34 TITLE:=Block device mounting and checking
35 DEPENDS:=+ubox +libubox +libuci
39 define Package/ubox/install
40 $(INSTALL_DIR) $(1)/sbin $(1)/usr/sbin
42 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{mount_root,kmodloader,lsbloader,board} $(1)/sbin/
43 ln -s /sbin/mount_root $(1)/sbin/switch2jffs
44 ln -s /sbin/mount_root $(1)/sbin/jffs2reset
45 ln -s /sbin/mount_root $(1)/sbin/jffs2mark
46 ln -s /sbin/kmodloader $(1)/usr/sbin/lsmod
47 ln -s /sbin/kmodloader $(1)/usr/sbin/modinfo
50 define Package/block-mount/install
51 $(INSTALL_DIR) $(1)/sbin $(1)/usr/sbin $(1)/etc/hotplug.d/block $(1)/etc/init.d/
53 $(INSTALL_BIN) ./files/fstab.init $(1)/etc/init.d/fstab
54 $(INSTALL_DATA) ./files/mount.hotplug $(1)/etc/hotplug.d/block/10-mount
56 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/block $(1)/sbin/
57 ln -s /sbin/block $(1)/usr/sbin/swapon
58 ln -s /sbin/block $(1)/usr/sbin/swapoff
62 $(eval $(call BuildPackage,ubox))
63 $(eval $(call BuildPackage,block-mount))