lantiq: move dsl related base-files into own package
authorMartin Schiller <ms.3headeddevs@gmail.com>
Wed, 21 Aug 2019 07:06:54 +0000 (09:06 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Fri, 17 Jul 2020 10:14:32 +0000 (12:14 +0200)
It does not make sense to install this components on lantiq systems
where the dsl subsystem is not needed/used.

This also makes it possible to use the files also on other targets.
(hopefully ipq401x / FritzBox 7530 in the near future)

Signed-off-by: Martin Schiller <ms.3headeddevs@gmail.com>
package/network/config/ltq-adsl-app/Makefile
package/network/config/ltq-vdsl-app/Makefile
package/network/utils/ltq-dsl-base/Makefile [new file with mode: 0644]
package/network/utils/ltq-dsl-base/files/etc/hotplug.d/dsl/led_dsl.sh [moved from target/linux/lantiq/base-files/etc/hotplug.d/dsl/led_dsl.sh with 100% similarity]
package/network/utils/ltq-dsl-base/files/etc/hotplug.d/dsl/pppoa.sh [moved from target/linux/lantiq/base-files/etc/hotplug.d/dsl/pppoa.sh with 100% similarity]
package/network/utils/ltq-dsl-base/files/lib/functions/lantiq_dsl.sh [moved from target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh with 100% similarity]
package/network/utils/ltq-dsl-base/files/sbin/dsl_notify.sh [moved from target/linux/lantiq/base-files/sbin/dsl_notify.sh with 100% similarity]

index 98c22a655f43cec02e32462ec63a2d9565d6bb72..4317f3d712a533d50647f9b1f3e58a91e3b0a487 100644 (file)
@@ -35,7 +35,7 @@ define Package/ltq-adsl-app
   CATEGORY:=Network
   TITLE:=Lantiq DSL userland tool
   URL:=http://www.lantiq.com/
-  DEPENDS:=@(TARGET_lantiq_xway||TARGET_lantiq_xway_legacy||TARGET_lantiq_ase) +libpthread
+  DEPENDS:=@(TARGET_lantiq_xway||TARGET_lantiq_xway_legacy||TARGET_lantiq_ase) +libpthread +ltq-dsl-base
   MENU:=1
 endef
 
index 670f720e2938ff312e2256cdd8d3f2f29c9b4b36..92d6faf73697b32a16451b4756be44dc22bd29e8 100644 (file)
@@ -28,7 +28,7 @@ define Package/ltq-vdsl-app
   CATEGORY:=Network
   TITLE:=Lantiq VDSL userland tool
   URL:=http://www.lantiq.com/
-  DEPENDS:=@TARGET_lantiq_xrx200 +libpthread +librt
+  DEPENDS:=@TARGET_lantiq_xrx200 +libpthread +librt +ltq-dsl-base
 endef
 
 define Package/ltq-vdsl-app/description
diff --git a/package/network/utils/ltq-dsl-base/Makefile b/package/network/utils/ltq-dsl-base/Makefile
new file mode 100644 (file)
index 0000000..6b931f7
--- /dev/null
@@ -0,0 +1,32 @@
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=ltq-dsl-base
+PKG_RELEASE:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/ltq-dsl-base
+  SECTION:=net
+  CATEGORY:=Network
+  TITLE:=DSL related files for Intel/Lantiq DSL Chipsets
+  URL:=http://openwrt.org/
+  DEPENDS:=@TARGET_lantiq +jshn
+endef
+
+define Package/ltq-dsl-base/description
+  This package contains DSL related files for Intel/Lantiq DSL Chipsets.
+endef
+
+define Build/Compile
+endef
+
+define Package/ltq-dsl-base/install
+       $(CP) ./files/* $(1)/
+endef
+
+$(eval $(call BuildPackage,ltq-dsl-base))