1#!/bin/sh
2
3# Simplfied version of Linux scripts/basic/fixdep. We don't need
4# CONFIG tracking etc for this usecase.
5
6
7# Fixdep's interface is described:
8
9# It is invoked as
10#
11#   fixdep <depfile> <target> <cmdline>
12#
13# and will read the dependency file <depfile>
14#
15# The transformed dependency snipped is written to stdout.
16#
17# It first generates a line
18#
19#   cmd_<target> = <cmdline>
20#
21# and then basically copies the .<target>.d file to stdout, in the
22# process filtering out the dependency on autoconf.h and adding
23# dependencies on include/config/my/option.h for every
24# CONFIG_MY_OPTION encountered in any of the prequisites.
25
26echo cmd_$2 = $3
27cat $1
28