aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Harkin <ryan.harkin@linaro.org>2016-05-23 11:46:06 +0100
committerRyan Harkin <ryan.harkin@linaro.org>2016-05-23 12:14:06 +0100
commit4e387eaf147fba8e2cb2be97006faf816314469a (patch)
tree0916d8018979b9030cb3a2b80c8e4a387b79c1e1
parent8c56a31627e2c19290e62e416e8c5ca2b3256b30 (diff)
Only build uInitrd if uboot is enabled
Change-Id: If9c74a823864d75f106452f2b235e91b7dc198cb Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
-rwxr-xr-xbuild-oe-binaries.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/build-oe-binaries.sh b/build-oe-binaries.sh
index 9450583..68f4e9d 100755
--- a/build-oe-binaries.sh
+++ b/build-oe-binaries.sh
@@ -72,12 +72,12 @@ do_package ()
popd
fi
if [ "$OE_RAMDISK_BUILD_ENABLED" == "1" ]; then
+ pushd ${PLATDIR}
+ # OpenEmbedded ramdisks
+ mkdir -p oe
+ touch oe/initrd
+ echo oe/initrd | cpio -ov > ramdisk-oe.img
if [ "$UBOOT_BUILD_ENABLED" == "1" ]; then
- pushd ${PLATDIR}
- # OpenEmbedded ramdisks
- mkdir -p oe
- touch oe/initrd
- echo oe/initrd | cpio -ov > ramdisk-oe.img
for target in $TARGET_BINS_PLATS; do
local addr=TARGET_$target[ramdisk]
${UBOOT_MKIMG} -A $LINUX_ARCH -O linux -C none \
@@ -86,8 +86,8 @@ do_package ()
-n "Dummy ramdisk" \
-d ramdisk-oe.img uInitrd-oe.${!addr}
done
- popd
fi
+ popd
fi
}