2018-10-19 13:06:16 +08:00
|
|
|
#
|
2021-01-30 19:06:57 +08:00
|
|
|
# Copyright (C) 2020 Lean <coolsnowwolf@gmail.com>
|
2018-10-19 13:06:16 +08:00
|
|
|
#
|
2021-02-06 17:52:37 +08:00
|
|
|
# Copyright (C) 2021 ImmortalWrt
|
2021-03-01 22:13:00 +08:00
|
|
|
# <https://immortalwrt.org>
|
2021-01-30 19:06:57 +08:00
|
|
|
#
|
|
|
|
|
# This is free software, licensed under the GNU General Public License v3.
|
2018-10-19 13:06:16 +08:00
|
|
|
# See /LICENSE for more information.
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
|
|
PKG_NAME:=autocore
|
|
|
|
|
PKG_VERSION:=1
|
2021-02-06 04:10:25 +08:00
|
|
|
PKG_RELEASE:=39
|
2018-10-19 13:06:16 +08:00
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
2020-06-06 18:35:30 +08:00
|
|
|
define Package/autocore-arm
|
|
|
|
|
TITLE:=Arm auto core loadbalance script.
|
2020-05-31 08:55:19 +08:00
|
|
|
MAINTAINER:=CN_SZTL
|
2021-02-04 11:08:02 +08:00
|
|
|
DEPENDS:=@(TARGET_bcm27xx||TARGET_bcm53xx||TARGET_ipq40xx||TARGET_ipq806x||TARGET_mvebu||TARGET_sunxi) \
|
2020-12-25 14:32:13 +08:00
|
|
|
+TARGET_bcm27xx:bcm27xx-userland \
|
|
|
|
|
+TARGET_bcm53xx:nvram \
|
|
|
|
|
+(TARGET_ipq40xx||TARGET_ipq806x):lm-sensors
|
2020-07-18 14:23:22 +08:00
|
|
|
VARIANT:=arm
|
2020-05-31 08:55:19 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define Package/autocore-x86
|
2018-10-19 13:06:16 +08:00
|
|
|
TITLE:=x86/x64 auto core loadbalance script.
|
|
|
|
|
MAINTAINER:=Lean
|
2019-10-10 13:53:58 +08:00
|
|
|
DEPENDS:=@TARGET_x86 +bc +lm-sensors +ethtool
|
2020-07-18 14:23:22 +08:00
|
|
|
VARIANT:=x86
|
2018-10-19 13:06:16 +08:00
|
|
|
endef
|
|
|
|
|
|
2020-06-06 18:35:30 +08:00
|
|
|
define Package/autocore-arm/description
|
|
|
|
|
A luci autoconfig hotplug script.
|
2018-10-19 13:06:16 +08:00
|
|
|
endef
|
|
|
|
|
|
2020-06-06 18:35:30 +08:00
|
|
|
define Package/autocore-x86/description
|
|
|
|
|
A usb autoconfig hotplug script.
|
|
|
|
|
endef
|
2020-05-31 08:55:19 +08:00
|
|
|
|
2018-10-19 13:06:16 +08:00
|
|
|
define Build/Compile
|
2021-01-30 19:06:57 +08:00
|
|
|
true
|
2018-10-19 13:06:16 +08:00
|
|
|
endef
|
|
|
|
|
|
2020-06-06 18:35:30 +08:00
|
|
|
define Package/autocore-arm/install
|
2020-05-31 08:55:19 +08:00
|
|
|
$(INSTALL_DIR) $(1)/etc
|
2020-06-06 18:35:30 +08:00
|
|
|
$(INSTALL_DATA) ./files/arm/index.htm $(1)/etc/index.htm
|
2021-01-30 19:06:57 +08:00
|
|
|
|
2020-05-31 08:55:19 +08:00
|
|
|
$(INSTALL_DIR) $(1)/etc/uci-defaults
|
2020-06-06 18:35:30 +08:00
|
|
|
$(INSTALL_BIN) ./files/arm/090-cover-index_htm $(1)/etc/uci-defaults/090-cover-index_htm
|
2021-01-30 19:06:57 +08:00
|
|
|
|
2020-05-31 08:55:19 +08:00
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
2020-08-01 19:30:37 +08:00
|
|
|
$(INSTALL_BIN) ./files/arm/sbin/cpuinfo $(1)/sbin/cpuinfo
|
2020-10-18 11:02:09 +08:00
|
|
|
ifneq (, $(findstring $(BOARD), ipq40xx ipq806x))
|
2020-09-25 11:25:09 +08:00
|
|
|
$(INSTALL_BIN) ./files/arm/sbin/tempinfo $(1)/sbin/tempinfo
|
|
|
|
|
endif
|
2020-05-31 08:55:19 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define Package/autocore-x86/install
|
2018-10-19 13:06:16 +08:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
2020-05-31 08:55:19 +08:00
|
|
|
$(INSTALL_BIN) ./files/x86/autocore $(1)/etc/init.d/autocore
|
2021-01-30 19:06:57 +08:00
|
|
|
|
2018-10-19 13:06:16 +08:00
|
|
|
$(INSTALL_DIR) $(1)/etc
|
2020-05-31 08:55:19 +08:00
|
|
|
$(INSTALL_DATA) ./files/x86/index.htm $(1)/etc/index.htm
|
2021-01-30 19:06:57 +08:00
|
|
|
|
2019-11-24 13:09:08 +08:00
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
2020-05-31 08:55:19 +08:00
|
|
|
$(CP) ./files/x86/sbin/* $(1)/sbin
|
2018-10-19 13:06:16 +08:00
|
|
|
endef
|
|
|
|
|
|
2020-06-06 18:35:30 +08:00
|
|
|
$(eval $(call BuildPackage,autocore-arm))
|
2020-05-31 08:55:19 +08:00
|
|
|
$(eval $(call BuildPackage,autocore-x86))
|