80 lines
2.3 KiB
Makefile
Raw Normal View History

2019-11-08 22:57:22 +08:00
#
# Copyright (C) 2020 Lean <coolsnowwolf@gmail.com>
2019-11-08 22:57:22 +08:00
#
# Copyright (C) 2021 ImmortalWrt
# <https://immortalwrt.org>
#
# This is free software, licensed under the GNU General Public License v3.
2019-11-08 22:57:22 +08:00
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=autocore
PKG_VERSION:=1
PKG_RELEASE:=$(AUTORELEASE)
2019-11-08 22:57:22 +08:00
include $(INCLUDE_DIR)/package.mk
2020-07-19 21:51:04 +08:00
define Package/autocore-arm
TITLE:=ARM auto core script.
MAINTAINER:=CN_SZTL
DEPENDS:=@(TARGET_bcm27xx||TARGET_bcm53xx||TARGET_ipq40xx||TARGET_ipq806x||TARGET_mvebu||TARGET_sunxi||TARGET_rockchip) \
+TARGET_bcm27xx:bcm27xx-userland \
2020-08-23 23:31:16 +08:00
+TARGET_bcm53xx:nvram \
+TARGET_ipq40xx:lm-sensors
2020-07-19 21:51:04 +08:00
VARIANT:=arm
endef
define Package/autocore-x86
2019-11-08 22:57:22 +08:00
TITLE:=x86/x64 auto core loadbalance script.
2020-07-19 21:51:04 +08:00
MAINTAINER:=Lean / CN_SZTL
2020-04-11 21:35:24 +08:00
DEPENDS:=@TARGET_x86 +bc +lm-sensors +ethtool
2020-07-19 21:51:04 +08:00
VARIANT:=x86
endef
define Package/autocore-arm/description
Display more details info about the devices in LuCI.
2019-11-08 22:57:22 +08:00
endef
2020-07-19 21:51:04 +08:00
define Package/autocore-x86/description
A USB autoconfig hotplug script.
2019-11-08 22:57:22 +08:00
endef
define Build/Compile
true
2019-11-08 22:57:22 +08:00
endef
2020-07-19 21:51:04 +08:00
define Package/autocore-arm/install
$(INSTALL_DIR) $(1)/etc
$(INSTALL_BIN) ./files/arm/rpcd_luci $(1)/etc/rpcd_luci
$(INSTALL_DATA) ./files/arm/rpcd_luci-mod-status.json $(1)/etc/rpcd_luci-mod-status.json
$(INSTALL_DATA) ./files/arm/rpcd_10_system.js $(1)/etc/rpcd_10_system.js
2020-07-19 21:51:04 +08:00
$(INSTALL_DIR) $(1)/etc/uci-defaults
$(INSTALL_BIN) ./files/arm/090-cover-index_files $(1)/etc/uci-defaults/090-cover-index_files
2020-07-19 21:51:04 +08:00
$(INSTALL_DIR) $(1)/sbin
$(INSTALL_BIN) ./files/arm/cpuinfo $(1)/sbin/cpuinfo
2020-07-19 22:08:47 +08:00
endef
2020-07-19 21:51:04 +08:00
define Package/autocore-x86/install
2020-03-16 05:02:00 +08:00
$(INSTALL_DIR) $(1)/etc
2020-07-19 21:51:04 +08:00
$(INSTALL_BIN) ./files/x86/rpcd_luci $(1)/etc/rpcd_luci
$(INSTALL_DATA) ./files/x86/rpcd_luci-mod-status.json $(1)/etc/rpcd_luci-mod-status.json
$(INSTALL_DATA) ./files/x86/rpcd_10_system.js $(1)/etc/rpcd_10_system.js
2019-11-08 22:57:22 +08:00
$(INSTALL_DIR) $(1)/etc/init.d
2020-07-19 21:51:04 +08:00
$(INSTALL_BIN) ./files/x86/autocore $(1)/etc/init.d/autocore
2020-02-01 02:30:25 +08:00
$(INSTALL_DIR) $(1)/sbin
2020-07-19 21:51:04 +08:00
$(INSTALL_BIN) ./files/x86/cpuinfo $(1)/sbin/cpuinfo
$(INSTALL_BIN) ./files/x86/ethinfo $(1)/sbin/ethinfo
2020-03-16 05:02:00 +08:00
$(INSTALL_DIR) $(1)/www/luci-static/resources/view/status/include
2020-07-19 21:51:04 +08:00
$(INSTALL_DATA) ./files/x86/rpcd_21_ethinfo.js $(1)/www/luci-static/resources/view/status/include/21_ethinfo.js
2019-11-08 22:57:22 +08:00
endef
2020-07-19 21:51:04 +08:00
$(eval $(call BuildPackage,autocore-arm))
$(eval $(call BuildPackage,autocore-x86))