summaryrefslogtreecommitdiffstats
path: root/dts/scripts/basic
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-02-03 10:24:26 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2016-02-04 08:40:35 +0100
commitd597afe7fbb0ac8ed0bcc48a5a73ca0ff62e7e63 (patch)
treed506afe0865a0bd5cc380e6bf751b38db77841b3 /dts/scripts/basic
parent73b35531b70acd011a2b9e0558689d15e5ada781 (diff)
downloadbarebox-d597afe7fbb0ac8ed0bcc48a5a73ca0ff62e7e63.tar.gz
barebox-d597afe7fbb0ac8ed0bcc48a5a73ca0ff62e7e63.tar.xz
dts: update to v4.4-rc5
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'dts/scripts/basic')
-rwxr-xr-xdts/scripts/basic/fixdep27
1 files changed, 27 insertions, 0 deletions
diff --git a/dts/scripts/basic/fixdep b/dts/scripts/basic/fixdep
new file mode 100755
index 0000000000..cc412bec06
--- /dev/null
+++ b/dts/scripts/basic/fixdep
@@ -0,0 +1,27 @@
+#!/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