From da34037a9266fb9b00c1cb408a17e9daa8beacbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Schr=C3=B6der?= Date: Wed, 10 Jun 2015 15:06:53 +0200 Subject: [PATCH] Added new way to generate config that takes into account package dependencies --- configs/Makefile | 30 ++++++++++++++++++++++++++++++ configs/vox25/Makefile | 5 +++++ 2 files changed, 35 insertions(+) diff --git a/configs/Makefile b/configs/Makefile index 7b04a1094..156ed60b9 100644 --- a/configs/Makefile +++ b/configs/Makefile @@ -27,12 +27,42 @@ define Package/inteno-configs/config default PACKAGE_inteno-vox25 config PACKAGE_inteno-vox25 select TARGET_ROOTFS_UBIFS + select BCM_I2C bool "VOX25" config PACKAGE_inteno-cg300 bool "CG300" + select BCM_I2C config PACKAGE_inteno-cg301 bool "CG301" endchoice + if PACKAGE_inteno-vox25 + config TARGET_MODEL_NAME + string + default "VOX25-WU7P2U" + prompt "Model Name" + config TARGET_VERSION + string + default "3.5.0RC1" + prompt "Target Version" + config TARGET_IBOARDID + string + default "VOX25" + prompt "Target Board ID" + endif + if PACKAGE_inteno-cg300 + config TARGET_MODEL_NAME + string + default "CG300-WU21U" + prompt "Model Name" + config TARGET_VERSION + string + default "3.5.0RC1" + prompt "Target Version" + config TARGET_IBOARDID + string + default "CG300" + prompt "Target Board ID" + endif endef define Package/inteno-configs/description diff --git a/configs/vox25/Makefile b/configs/vox25/Makefile index 4807c4d27..4c6311181 100644 --- a/configs/vox25/Makefile +++ b/configs/vox25/Makefile @@ -37,6 +37,11 @@ define Package/inteno-vox25/install #$(1)/sbin/juci-update $(1)/www/ RELEASE endef + +define Image/PreBuild + CONFIG_TARGET_MARTINTEST:="MARTINTEST is SET" +endef + define Package/inteno-vox25/postinst #!/bin/sh /sbin/juci-update /www/ RELEASE