fix webd makefile

This commit is contained in:
GD-Slime 2023-06-18 10:12:02 +08:00 committed by GitHub
parent d03bff475d
commit 5ccde88841
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 18 deletions

View File

@ -4,7 +4,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=webd
PKG_VERSION:=20220512
PKG_VERSION:=20230604
PKG_RELEASE:=$(AUTORELESE)
include $(INCLUDE_DIR)/package.mk
@ -19,58 +19,61 @@ endef
ifeq ($(ARCH),aarch64)
ifeq ($(BOARD),cortex-a53)
TARGET_ARCH:=aarch64_cortex-a53.brcm2708-bcm2710
TARGET_ARCH:=musl.brcm2708-bcm2710
endif
ifeq ($(BOARD),rockchip)
TARGET_ARCH:=aarch64_generic.rockchip-armv8
endif
ifeq ($(BOARD),mvebu)
TARGET_ARCH:=arm_cortex-a9.mvebu-cortexa9
TARGET_ARCH:=musl.rockchip-armv8
endif
endif
ifeq ($(ARCH),arm)
ifeq ($(BOARD),ipq806x)
TARGET_ARCH:=arm_cortex-a15.ipq806x
TARGET_ARCH:=muslgnueabi.ipq806x
endif
ifeq ($(BOARD),ipq40xx)
TARGET_ARCH:=arm_cortex-a7.ipq40xx
TARGET_ARCH:=muslgnueabi.ipq40xx
endif
ifeq ($(BOARD),bcm53xx)
TARGET_ARCH:=arm_cortex-a9.bcm53xx
TARGET_ARCH:=muslgnueabi.bcm53xx
endif
ifeq ($(BOARD),oxnas)
TARGET_ARCH:=arm_mpcore.oxnas
TARGET_ARCH:=muslgnueabi.oxnas
endif
ifeq ($(BOARD),kirkwood)
TARGET_ARCH:=arm_xscale.kirkwood
TARGET_ARCH:=muslgnueabi.kirkwood
endif
ifeq ($(BOARD),mvebu)
TARGET_ARCH:=muslgnueabi.mvebu-cortexa9
endif
endif
ifeq ($(ARCH),mipsel)
ifeq ($(BOARD),bcm47xx)
TARGET_ARCH:=mipsel_74kc.brcm47xx-mips74k
TARGET_ARCH:=musl.brcm47xx-mips74k
endif
ifeq ($(BOARD),ramips)
TARGET_ARCH:=mipsel_24kc.ramips-mt7620
TARGET_ARCH:=musl.ramips-mt7620
endif
endif
ifeq ($(ARCH),mips)
ifeq ($(BOARD),ath79)
TARGET_ARCH:=mips_24kc.ath79
TARGET_ARCH:=musl.ath79
endif
ifeq ($(BOARD),bcm63xx)
TARGET_ARCH:=mips_mips32.brcm63xx-uClibc
TARGET_ARCH:=uclibc.brcm63xx
endif
ifeq ($(BOARD),ar71xx)
TARGET_ARCH:=uclibc.ar71xx
endif
endif
ifeq ($(ARCH),x86_64)
TARGET_ARCH:=x86-64
TARGET_ARCH:=musl.x86-64
endif
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-openwrt-$(TARGET_ARCH).tar.gz
PKG_SOURCE_URL:=https://gwgw.ga/webd/$(PKG_VERSION)/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(ARCH)-openwrt-linux-$(TARGET_ARCH).tar.gz
PKG_SOURCE_URL:=https://cnt2.cf/fidx.html#/webd/$(PKG_VERSION)/
PKG_HASH:=skip
UNTAR_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)