diff options
author | Roman Yeryomin <roman@advem.lv> | 2014-02-28 00:11:25 +0200 |
---|---|---|
committer | Roman Yeryomin <roman@advem.lv> | 2014-02-28 00:11:25 +0200 |
commit | af3a1aa59f7e3cd8b2916fd2ebebb86dcbdc4011 (patch) | |
tree | 6c71a3effdc3bff2a4e89adc99771ad2e559d293 | |
parent | 31f6441298f93fa2cde023c54bb0eada0226b4a7 (diff) |
Add rtkmib package and add it to nprove target profiles.
Signed-off-by: Roman Yeryomin <roman@advem.lv>
-rw-r--r-- | package/network/utils/rtkmib/Makefile | 54 | ||||
-rw-r--r-- | target/linux/realtek/rtl8196c/profiles/nprove.mk | 2 | ||||
-rw-r--r-- | target/linux/realtek/rtl8196d/profiles/nprove.mk | 2 | ||||
-rw-r--r-- | target/linux/realtek/rtl8196e/profiles/nprove.mk | 2 |
4 files changed, 57 insertions, 3 deletions
diff --git a/package/network/utils/rtkmib/Makefile b/package/network/utils/rtkmib/Makefile new file mode 100644 index 000000000..d671766f3 --- /dev/null +++ b/package/network/utils/rtkmib/Makefile @@ -0,0 +1,54 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=rtkmib +PKG_VERSION:=5dd1e3de +PKG_RELEASE:=1 + +PKG_SOURCE_MIRROR:=0 +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE) +PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz +PKG_SOURCE_VERSION:=$(PKG_VERSION) +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=git://git.nprove.in/$(PKG_NAME) + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR) +PKG_ROOTFS_DIR:=/usr/bin + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/host-build.mk + + +define Package/$(PKG_NAME) + SECTION:=utils + CATEGORY:=Utilities + VERSION:=$(PKG_VERSION)-$(PKG_RELEASE) + TITLE:=Realtek MIB reader + MAINTAINER:=Roman Yeryomin <roman@advem.lv> + DEPENDS:=@TARGET_realtek +endef + +define Package/$(PKG_NAME)/description + Realtek MIB data (calibration, MAC addresses, etc.) reader utility +endef + +define Build/Compile + $(MAKE) -C $(PKG_BUILD_DIR) \ + CC="$(TARGET_CC) -fhonour-copts" \ + CROSS_COMPILE="$(TARGET_CROSS)" \ + EXTRA_CFLAGS="$(TARGET_CFLAGS)" \ + ARCH="$(ARCH)" \ + AR="$(TARGET_CROSS)ar" \ + RANLIB="$(TARGET_CROSS)ranlib" \ + EXTRA_LDFLAGS="$(TARGET_LDFLAGS)" \ + all +endef + +define Package/$(PKG_NAME)/install + $(INSTALL_DIR) $(1)$(PKG_ROOTFS_DIR) + $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)$(PKG_ROOTFS_DIR)/ +# $(INSTALL_DIR) $(1)/etc/init.d +# $(INSTALL_BIN) base-files/etc/init.d/rtkmib $(1)/etc/init.d/ +endef + +$(eval $(call HostBuild)) +$(eval $(call BuildPackage,$(PKG_NAME))) diff --git a/target/linux/realtek/rtl8196c/profiles/nprove.mk b/target/linux/realtek/rtl8196c/profiles/nprove.mk index 61c08b48c..fc37dd058 100644 --- a/target/linux/realtek/rtl8196c/profiles/nprove.mk +++ b/target/linux/realtek/rtl8196c/profiles/nprove.mk @@ -15,7 +15,7 @@ define Profile/nprove luci luci-app-diag-devinfo luci-app-p910nd luci-app-qos luci-app-wol \ librt libiw query3g maccalc libopenssl \ usb-modeswitch usb-modeswitch-data usbutils \ - firewall block-mount qos-scripts + firewall block-mount qos-scripts rtkmib endef define Profile/nprove/Description diff --git a/target/linux/realtek/rtl8196d/profiles/nprove.mk b/target/linux/realtek/rtl8196d/profiles/nprove.mk index 51a97d365..2631d1aed 100644 --- a/target/linux/realtek/rtl8196d/profiles/nprove.mk +++ b/target/linux/realtek/rtl8196d/profiles/nprove.mk @@ -14,7 +14,7 @@ define Profile/nprove luci luci-app-diag-devinfo luci-app-p910nd luci-app-qos luci-app-wol \ librt libiw query3g maccalc libopenssl \ usb-modeswitch usb-modeswitch-data usbutils \ - firewall mountd + firewall mountd qos-scripts rtkmib endef define Profile/nprove/Description diff --git a/target/linux/realtek/rtl8196e/profiles/nprove.mk b/target/linux/realtek/rtl8196e/profiles/nprove.mk index 3aa5377a0..64b7a8e98 100644 --- a/target/linux/realtek/rtl8196e/profiles/nprove.mk +++ b/target/linux/realtek/rtl8196e/profiles/nprove.mk @@ -15,7 +15,7 @@ define Profile/nprove luci luci-app-diag-devinfo luci-app-p910nd luci-app-qos luci-app-wol \ librt libiw query3g maccalc libopenssl \ usb-modeswitch usb-modeswitch-data usbutils \ - firewall mountd qos-scripts + firewall mountd qos-scripts rtkmib endef define Profile/nprove/Description |