mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
Add a directory by kernel instead of a common root, add qnap-301w and rpi4 kernel 6.1 suppport
This commit is contained in:
parent
e910436a7a
commit
46837ec4c0
9459 changed files with 362648 additions and 116345 deletions
42
common/package/utils/sysupgrade-helper/Makefile
Normal file
42
common/package/utils/sysupgrade-helper/Makefile
Normal file
|
@ -0,0 +1,42 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
include $(INCLUDE_DIR)/download.mk
|
||||
include $(INCLUDE_DIR)/kernel.mk
|
||||
include $(INCLUDE_DIR)/version.mk
|
||||
|
||||
PKG_DISTNAME:=sysupgrade-helper
|
||||
PKG_NAME:=u-boot-ipq86xx
|
||||
PKG_VERSION:=1.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
#PKG_SOURCE_DATE:=2021-03-03
|
||||
#PKG_SOURCE_VERSION:=23cc677bb2dc41f0077a1bef660649070bf4b8c9
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_DISTNAME)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/sysupgrade-helper
|
||||
SECTION:=boot
|
||||
CATEGORY:=Boot Loaders
|
||||
TITLE:=U-boot images tools (dumpimage, mkimage)
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) ipq806x_cdp_config
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
cp config $(PKG_BUILD_DIR)/.config
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) HOSTCC=$(TARGET_CC) \
|
||||
HOSTSTRIP=true CROSS_COMPILE=$(TARGET_CROSS) \
|
||||
QSDK_CFLAGS="$(TARGET_CFLAGS)" \
|
||||
QSDK_LDFLAGS="$(TARGET_LDFLAGS)"
|
||||
endef
|
||||
|
||||
define Package/sysupgrade-helper/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/mkimage $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/dumpimage $(1)/usr/bin
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,sysupgrade-helper))
|
Loading…
Add table
Add a link
Reference in a new issue