Hi, Ross: Thanks for the reply, will make a V3!
Ross Burton <[email protected]> 於 2024年10月24日 週四 下午12:59寫道: > On 23 Oct 2024, at 16:11, Ming Liu via lists.openembedded.org <liu.ming50= > [email protected]> wrote: > > > > To extract the SDK archive, the proper tools need to be present on > > system, check unzip for zip archive type, check xz for tar.xz archive > > type. > > > > Signed-off-by: Ming Liu <[email protected]> > > --- > > meta/files/toolchain-shar-extract.sh | 8 ++++++++ > > 1 file changed, 8 insertions(+) > > > > diff --git a/meta/files/toolchain-shar-extract.sh > b/meta/files/toolchain-shar-extract.sh > > index 3b4647fca7..9b72499ccf 100644 > > --- a/meta/files/toolchain-shar-extract.sh > > +++ b/meta/files/toolchain-shar-extract.sh > > @@ -245,6 +245,10 @@ fi > > > > printf "Extracting SDK..." > > if [ @SDK_ARCHIVE_TYPE@ = "zip" ]; then > > + if [ -z "$(which unzip)" ]; then > > + echo "Aborted, unzip is required to extract the SDK archive, > please make sure it's installed on your system!" > > + exit 1 > > + fi > > Unfortunately ‘which’ is not POSIX or even universally installed on Linux > systems. > > https://hynek.me/til/which-not-posix/ > > Using command -v is the portable alternative. > > Ross > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#206393): https://lists.openembedded.org/g/openembedded-core/message/206393 Mute This Topic: https://lists.openembedded.org/mt/109172097/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
