freebsd-dev/sys/tools/fdt/make_dtbh.sh
Rafal Jaworowski 847ae21203 Flattened Device Tree helper scripts.
Reviewed by:	imp
Sponsored by:	The FreeBSD Foundation
2010-06-02 17:22:38 +00:00

9 lines
181 B
Bash
Executable File

#!/bin/sh
#
# $FreeBSD$
# Script generates a $2/fdt_static_dtb.h file.
dtb_base_name=`basename $1 .dts`
echo '#define FDT_DTB_FILE "'${dtb_base_name}.dtb'"' > $2/fdt_static_dtb.h