aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen-deps
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gen-deps')
-rwxr-xr-xscripts/gen-deps17
1 files changed, 15 insertions, 2 deletions
diff --git a/scripts/gen-deps b/scripts/gen-deps
index 6ddd289..7a468d3 100755
--- a/scripts/gen-deps
+++ b/scripts/gen-deps
@@ -13,7 +13,14 @@ gencommon () {
}
genlink () {
gencommon ".ld"
- echo " \$(GENLINK) $< | \$(STRIPLINK) > \$@" >> deps.mk
+ if [ "${init}" = "0" ] ; then
+ echo " \$(GENLINK) $< | \$(STRIPLINK) > \$@"\
+ >> deps.mk;
+ else
+ echo " \$(GENLINK) $< | \$(STRIPLINK) | \$(KERN_INFO) > \$@"\
+ >> deps.mk;
+ fi
+
}
genrule () {
@@ -32,10 +39,16 @@ case "${1}" in
defs=-DINIT
func=genrule
;;
- --link)
+ --init-link)
suffix=.ld
+ init=1
func=genlink
;;
+
+ --kern-link)
+ suffix=.ld
+ init=0
+ func=genlink
esac
for s in ${2}