summaryrefslogtreecommitdiff
path: root/dts/upstream/scripts/basic
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2024-02-29 12:33:36 -0500
committerTom Rini <[email protected]>2024-02-29 12:33:36 -0500
commitdbe9334e5125efcf8a825e7c5c924e2780e609e3 (patch)
tree76d7c01587afe238d2127a7562ca256fe9c87a9f /dts/upstream/scripts/basic
parentea3348ebc215d2a9d6dd14f40fb7e8c86dc45e4a (diff)
parent53633a893a06bd5a0c807287d9cc29337806eaf7 (diff)
Merge commit '53633a893a06bd5a0c807287d9cc29337806eaf7' as 'dts/upstream'
Diffstat (limited to 'dts/upstream/scripts/basic')
-rwxr-xr-xdts/upstream/scripts/basic/fixdep27
1 files changed, 27 insertions, 0 deletions
diff --git a/dts/upstream/scripts/basic/fixdep b/dts/upstream/scripts/basic/fixdep
new file mode 100755
index 00000000000..cc412bec06c
--- /dev/null
+++ b/dts/upstream/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