Emmanuel Vadot c66ec88fed Add 'sys/contrib/device-tree/' from commit '5ee353c36d3c9c7f63df7c7671875e73fba70958'
git-subtree-dir: sys/contrib/device-tree
git-subtree-mainline: 94611a838866cba8d7366a3107724af98c75e953
git-subtree-split: 5ee353c36d3c9c7f63df7c7671875e73fba70958
2021-01-15 12:28:57 +01:00

28 lines
656 B
Bash
Executable File

#!/bin/sh
# Simplfied version of Linux scripts/basic/fixdep. We don't need
# CONFIG tracking etc for this usecase.
# Fixdep's interface is described:
# It is invoked as
#
# fixdep <depfile> <target> <cmdline>
#
# and will read the dependency file <depfile>
#
# The transformed dependency snipped is written to stdout.
#
# It first generates a line
#
# cmd_<target> = <cmdline>
#
# and then basically copies the .<target>.d file to stdout, in the
# process filtering out the dependency on autoconf.h and adding
# dependencies on include/config/my/option.h for every
# CONFIG_MY_OPTION encountered in any of the prequisites.
echo cmd_$2 = $3
cat $1