If no device tree is given there is no node generated, but
the configuration does still include the name of the missing node.
This will result in a successful build fit image, but bootm does
throw a error message if we want to boot the bad configuration.
Signed-off-by: Johann Neuhauser <jneuhauser@dh-electronics.com>
# Conditionally create fdt information
if [ -n "${DTB}" ]; then
- FDT="
+ FDT_NODE="
fdt@1 {
description = \"${ARCH_UPPER} OpenWrt ${DEVICE} device tree blob\";
data = /incbin/(\"${DTB}\");
};
};
"
+ FDT_PROP="fdt = \"fdt@1\";"
fi
# Create a default, fully populated DTS file
algo = \"sha1\";
};
};
-
-${FDT}
-
+${FDT_NODE}
};
configurations {
${CONFIG} {
description = \"OpenWrt\";
kernel = \"kernel@1\";
- fdt = \"fdt@1\";
+ ${FDT_PROP}
};
};
};"