Makefile 1.6 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
#
# Copyright (C) 2010-2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=autocore
PKG_VERSION:=1
12
PKG_RELEASE:=36
13 14 15

include $(INCLUDE_DIR)/package.mk

16 17 18
define Package/autocore-arm
  TITLE:=Arm auto core loadbalance script.
  MAINTAINER:=CN_SZTL
19 20 21
  DEPENDS:=@(TARGET_bcm27xx||TARGET_bcm53xx||TARGET_ipq40xx||TARGET_ipq806x||TARGET_mvebu||TARGET_rockchip) \
    +TARGET_bcm27xx:bcm27xx-userland +TARGET_bcm53xx:nvram \
    +(TARGET_ipq40xx||TARGET_ipq806x):lm-sensors
22 23 24 25
  VARIANT:=arm
endef

define Package/autocore-x86
26 27
  TITLE:=x86/x64 auto core loadbalance script.
  MAINTAINER:=Lean
L
LEAN-ESX 已提交
28
  DEPENDS:=@TARGET_x86 +bc +lm-sensors +ethtool
29 30 31 32 33
  VARIANT:=x86
endef

define Package/autocore-arm/description
  A luci autoconfig hotplug script.
34 35
endef

36 37
define Package/autocore-x86/description
  A usb autoconfig hotplug script.
38 39 40 41 42
endef

define Build/Compile
endef

43 44 45 46 47 48 49 50 51 52
define Package/autocore-arm/install
	$(INSTALL_DIR) $(1)/etc
	$(INSTALL_DATA) ./files/arm/index.htm $(1)/etc/index.htm
	$(INSTALL_DIR) $(1)/etc/uci-defaults
	$(INSTALL_BIN) ./files/arm/090-cover-index_htm $(1)/etc/uci-defaults/090-cover-index_htm
	$(INSTALL_DIR) $(1)/sbin
	$(INSTALL_BIN) ./files/arm/sbin/cpuinfo $(1)/sbin/cpuinfo
endef

define Package/autocore-x86/install
53
	$(INSTALL_DIR) $(1)/etc/init.d
54
	$(INSTALL_BIN) ./files/x86/autocore $(1)/etc/init.d/autocore
55
	$(INSTALL_DIR) $(1)/etc
56
	$(INSTALL_DATA) ./files/x86/index.htm $(1)/etc/index.htm
L
LEAN-ESX 已提交
57
	$(INSTALL_DIR) $(1)/sbin
58
	$(CP) ./files/x86/sbin/* $(1)/sbin
59 60
endef

61 62
$(eval $(call BuildPackage,autocore-arm))
$(eval $(call BuildPackage,autocore-x86))