From e90e81a8b2d0907d5ad0c54e633b4eef71683326 Mon Sep 17 00:00:00 2001 From: Oussama Ghorbel Date: Tue, 6 Nov 2018 17:14:27 +0100 Subject: [PATCH] implement TARGET_DEVICES and converge to lantiq/intel_mips --- iop/configs/target/intel_mips/config | 3 +++ iop/scripts/genconfig.sh | 16 ++++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/iop/configs/target/intel_mips/config b/iop/configs/target/intel_mips/config index b7821444e..ce57d1b12 100644 --- a/iop/configs/target/intel_mips/config +++ b/iop/configs/target/intel_mips/config @@ -59,3 +59,6 @@ CONFIG_FEATURE_LTQ_WAVE_500B=y # CONFIG_PACKAGE_libcgroup is not set # CONFIG_PACKAGE_libcgroup-daemon is not set # CONFIG_PACKAGE_libdatamodel is not set + +# CONFIG_TARGET_ROOTFS_INITRAMFS is not set +# CONFIG_TARGET_ROOTFS_SQUASHFS is not set diff --git a/iop/scripts/genconfig.sh b/iop/scripts/genconfig.sh index fe35cd9fe..6490e5281 100755 --- a/iop/scripts/genconfig.sh +++ b/iop/scripts/genconfig.sh @@ -256,8 +256,20 @@ function genconfig { fi # Set target and profile - echo "CONFIG_TARGET_${target}=y" >> .config - echo "CONFIG_TARGET_${target}_${BOARDTYPE}=y" >> .config + + #special handling for intel_mips which use TARGET_DEVICES + if [ "$target" = "intel_mips" ]; then + subtarget="xrx500" + echo "CONFIG_TARGET_${target}=y" >> .config + echo "CONFIG_TARGET_${target}_${subtarget}=y" >> .config + echo "CONFIG_TARGET_MULTI_PROFILE=y" >> .config + echo "CONFIG_TARGET_PER_DEVICE_ROOTFS=y" >> .config + device=$(echo $BOARDTYPE | tr a-z A-Z) + echo "CONFIG_TARGET_DEVICE_${target}_${subtarget}_DEVICE_${device}=y" >> .config + else + echo "CONFIG_TARGET_${target}=y" >> .config + echo "CONFIG_TARGET_${target}_${BOARDTYPE}=y" >> .config + fi echo "$CUSTOMER $BOARDTYPE" > $CURRENT_CONFIG_FILE