From adc862d5a5d550884183649b683114450f759208 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Tue, 2 Aug 2016 14:39:30 +0200 Subject: [PATCH] Let LDSO be optional --- targets/Linux-i386 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/targets/Linux-i386 b/targets/Linux-i386 index df5a9cb..8700d0e 100644 --- a/targets/Linux-i386 +++ b/targets/Linux-i386 @@ -98,7 +98,7 @@ _image_ramdisk_pre() IMAGE_FILE Where to write the filesystem image\n\ IMAGE_MODULES Path to a tar.gz archive of kernel modules (optional)\n\ IMAGE_SIZE Size of the filesystem image in kilobytes\n\ - LDSO Path to the dynamic loader + LDSO Path to the dynamic loader (optional) GENEXT2FS Command used to generate the ramdisk image" #sanity check @@ -126,8 +126,10 @@ _image_ramdisk_post() $DEBUG $LN -s "../mnt/cdrom/usr/bin/sh" "$DESTDIR/sbin/init" \ || exit 2 - #install loader - $DEBUG $INSTALL -m 0755 "$LDSO" "$DESTDIR/lib" || exit 2 + #install dynamic loader + if [ -n "$LDSO" ]; then + $DEBUG $INSTALL -m 0755 "$LDSO" "$DESTDIR/lib" || exit 2 + fi echo echo -n "Creating ramdisk:"