From 31a2de36ab91ec012bc2245cadff8eacc09dda21 Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Thu, 1 Dec 2022 14:05:27 +0800 Subject: [PATCH] ramips: fix HATLab GateBoard-One Support --- config/Config-images.in | 2 +- scripts/gen-rddependencies.sh | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100755 scripts/gen-rddependencies.sh diff --git a/config/Config-images.in b/config/Config-images.in index 781739a30..4e1c8a47a 100644 --- a/config/Config-images.in +++ b/config/Config-images.in @@ -303,7 +303,7 @@ menu "Target Images" config TARGET_ROOTFS_PARTSIZE int "Root filesystem partition size (in MB)" - depends on USES_ROOTFS_PART || TARGET_ROOTFS_EXT4FS || TARGET_omap || TARGET_sunxi || TARGET_uml + depends on USES_ROOTFS_PART || TARGET_ROOTFS_EXT4FS || TARGET_omap || TARGET_sunxi || TARGET_uml || TARGET_ramips default 400 help Select the root filesystem partition size. diff --git a/scripts/gen-rddependencies.sh b/scripts/gen-rddependencies.sh new file mode 100755 index 000000000..509d6a4fa --- /dev/null +++ b/scripts/gen-rddependencies.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +TARGETS=$* +READELF="${READELF:-readelf}" +XARGS="${XARGS:-xargs -r}" + +find $TARGETS -type f -a -exec file {} \; | \ + sed -n -e 's/^\(.*\):.*ELF.*\(executable\|shared object\).*,.*/\1/p' | \ + $XARGS -n1 $READELF -l | grep 'Requesting' | cut -d':' -f2 | tr -d ' ]' | \ + $XARGS basename + +cd `dirname ${0}` +./gen-dependencies.sh ${TARGETS}