X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=scripts%2Fmkits.sh;h=32a978e18d1b6f769775acac269964998c283205;hb=9858a8c5827659df051aa4bb1d3dd53081cc81cf;hp=5d836be8e43e6db4cec603a66c67d8556ca36bbe;hpb=1b773a46c2023ef32ddbbc3835e20b6c216b184e;p=openwrt%2Fopenwrt.git diff --git a/scripts/mkits.sh b/scripts/mkits.sh index 5d836be8e4..32a978e18d 100755 --- a/scripts/mkits.sh +++ b/scripts/mkits.sh @@ -15,7 +15,7 @@ # usage() { - echo "Usage: `basename $0` -A arch -C comp -a addr -e entry" \ + echo "Usage: $(basename $0) -A arch -C comp -a addr -e entry" \ "-v version -k kernel [-D name -d dtb] -o its_file" echo -e "\t-A ==> set architecture to 'arch'" echo -e "\t-C ==> set compression type 'comp'" @@ -55,11 +55,11 @@ if [ -z "${ARCH}" ] || [ -z "${COMPRESS}" ] || [ -z "${LOAD_ADDR}" ] || \ usage fi -ARCH_UPPER=`echo $ARCH | tr '[:lower:]' '[:upper:]'` +ARCH_UPPER=$(echo $ARCH | tr '[:lower:]' '[:upper:]') # Conditionally create fdt information if [ -n "${DTB}" ]; then - FDT=" + FDT_NODE=" fdt@1 { description = \"${ARCH_UPPER} OpenWrt ${DEVICE} device tree blob\"; data = /incbin/(\"${DTB}\"); @@ -74,6 +74,7 @@ if [ -n "${DTB}" ]; then }; }; " + FDT_PROP="fdt = \"fdt@1\";" fi # Create a default, fully populated DTS file @@ -100,9 +101,7 @@ DATA="/dts-v1/; algo = \"sha1\"; }; }; - -${FDT} - +${FDT_NODE} }; configurations { @@ -110,7 +109,7 @@ ${FDT} ${CONFIG} { description = \"OpenWrt\"; kernel = \"kernel@1\"; - fdt = \"fdt@1\"; + ${FDT_PROP} }; }; };"