aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2021-09-19 17:46:26 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2021-09-19 19:07:13 +0300
commit4dffc92abf8f6a6e9b503c9809caaa99795d7a00 (patch)
tree65fdb7c09f0b9a0ce2551fe8b51e637309322ed5 /scripts
parent5979b0e7ba9064ae4033dbbe650bea86c2afb440 (diff)
downloadkmi-4dffc92abf8f6a6e9b503c9809caaa99795d7a00.tar.gz
kmi-4dffc92abf8f6a6e9b503c9809caaa99795d7a00.zip
Added basic awareness of kernel size/bounds
Diffstat (limited to 'scripts')
-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}