ltq-adsl(-fw): Makefile clean-up and fixes
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Tue, 14 Apr 2020 14:10:49 +0000 (16:10 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Fri, 24 Apr 2020 15:59:22 +0000 (17:59 +0200)
This fixes a few minor issues (partially cosmetic) in ltq-adsl and
ltq-adsl-fw Makefiles:
- fix PKG_SOURCE_URL and switch to https
- remove non-existant FW_NAME variable
- fix package name for config inclusion
- fix config symbol for debugging

Fixes: 1d0a9d0c0470 ("move ltq-adsl")
Cc: John Crispin <john@phrozen.org>
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
package/kernel/lantiq/ltq-adsl-fw/Makefile
package/kernel/lantiq/ltq-adsl/Config.in
package/kernel/lantiq/ltq-adsl/Makefile

index 5775d0cf509d6f7f09241379a2e65c1114e33071..66f91a991e5b3936c3591aa0fd8c4d6ce28eb838 100644 (file)
@@ -13,7 +13,7 @@ PKG_RELEASE:=1
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/ltq-dsl-fw-$(PKG_VERSION)
 PKG_SOURCE:=ltq-dsl-fw-$(PKG_VERSION).tar.bz2
-PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources/
+PKG_SOURCE_URL:=https://sources.openwrt.org/
 PKG_HASH:=28676d41c4b76e5bf7a2c5eae106a61fb96b93eabc0cb71120575fff9997269f
 PKG_MAINTAINER:=John Crispin <john@phrozen.org>
 
@@ -45,8 +45,8 @@ endef
 
 define Package/kmod-ltq-adsl-$(BUILD_VARIANT)/install
        $(INSTALL_DIR) $(1)/lib/firmware/
-       $(CP) $(PKG_BUILD_DIR)/$(FW_NAME)/ltq-dsl-fw-$(ANNEX)-$(SOC).bin $(1)/lib/firmware/
-       ln -s /lib/firmware/$(FW_NAME)/ltq-dsl-fw-$(ANNEX)-$(SOC).bin $(1)/lib/firmware/adsl.bin
+       $(CP) $(PKG_BUILD_DIR)/ltq-dsl-fw-$(ANNEX)-$(SOC).bin $(1)/lib/firmware/
+       ln -s /lib/firmware/ltq-dsl-fw-$(ANNEX)-$(SOC).bin $(1)/lib/firmware/adsl.bin
 endef
 
 $(eval $(call BuildPackage,kmod-ltq-adsl-danube-fw-a))
index 6d9caf441907a089274cc22402bae4deef037e26..8ae65d373ad1663af7b13675bc75f6f3f035225f 100644 (file)
@@ -1,5 +1,5 @@
-config LANTIQ_DSL_DEBUG
+config LANTIQ_ADSL_DEBUG
        bool "verbose debugging"
-       depends on PACKAGE_kmod-ltq-dsl
+       depends on PACKAGE_kmod-ltq-adsl
        help
-         Say Y, if you need ltq-dsl to display debug messages.
+         Say Y, if you need ltq-adsl to display debug messages.
index e6817efffc012c72ba131cfa305cfbc476584121..1a9128fc58241d7a467e66a1088f0b181a5fde77 100644 (file)
@@ -10,10 +10,10 @@ include $(INCLUDE_DIR)/kernel.mk
 
 PKG_NAME:=ltq-adsl
 PKG_VERSION:=3.24.4.4
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 PKG_SOURCE:=drv_dsl_cpe_api_danube-$(PKG_VERSION).tar.gz
 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/ltq-dsl-$(BUILD_VARIANT)/drv_dsl_cpe_api-$(PKG_VERSION)
-PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources/
+PKG_SOURCE_URL:=https://mirror2.openwrt.org/sources/
 PKG_HASH:=eb2ed59715d3bf4e8a1460bbbe2f1660039e0a9f9d72afb1b2b16590094eb33c
 PKG_MAINTAINER:=John Crispin <john@phrozen.org>
 
@@ -38,7 +38,7 @@ KernelPackage/ltq-adsl-danube=$(call KernelPackage/ltq-adsl-template,danube,(TAR
 KernelPackage/ltq-adsl-ar9=$(call KernelPackage/ltq-adsl-template,ar9,TARGET_lantiq_xway)
 KernelPackage/ltq-adsl-ase=$(call KernelPackage/ltq-adsl-template,ase,TARGET_lantiq_ase)
 
-define KernelPackage/ltq-dsl/config
+define KernelPackage/ltq-adsl/config
        source "$(SOURCE)/Config.in"
 endef
 
@@ -75,7 +75,7 @@ CONFIGURE_ARGS += --enable-add-drv-cflags="-DMODULE -DCONFIG_$(CONFIG_TAG_$(BUIL
 
 CONFIGURE_ARGS += --enable-danube
 
-ifeq ($(CONFIG_LANTIQ_DSL_DEBUG),y)
+ifeq ($(CONFIG_LANTIQ_ADSL_DEBUG),y)
 CONFIGURE_ARGS += \
        --enable-debug=yes \
        --enable-debug-prints=yes