Procházet zdrojové kódy

lantiq: move dsl related base-files into own package

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 <[email protected]>
Martin Schiller před 6 roky
rodič
revize
4d8552c265

+ 1 - 1
package/network/config/ltq-adsl-app/Makefile

@@ -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
 

+ 1 - 1
package/network/config/ltq-vdsl-app/Makefile

@@ -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

+ 32 - 0
package/network/utils/ltq-dsl-base/Makefile

@@ -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))

+ 0 - 0
target/linux/lantiq/base-files/etc/hotplug.d/dsl/led_dsl.sh → package/network/utils/ltq-dsl-base/files/etc/hotplug.d/dsl/led_dsl.sh


+ 0 - 0
target/linux/lantiq/base-files/etc/hotplug.d/dsl/pppoa.sh → package/network/utils/ltq-dsl-base/files/etc/hotplug.d/dsl/pppoa.sh


+ 0 - 0
target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh → package/network/utils/ltq-dsl-base/files/lib/functions/lantiq_dsl.sh


+ 0 - 0
target/linux/lantiq/base-files/sbin/dsl_notify.sh → package/network/utils/ltq-dsl-base/files/sbin/dsl_notify.sh