summaryrefslogtreecommitdiffstats
path: root/freebsd-to-rtems.py
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-10-10 09:31:18 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-10-31 13:18:45 +0100
commited2ce44cd9edbae2d767105d989733091c0865e8 (patch)
treedfa2288f6957ecce2e860618768371ce98c862ba /freebsd-to-rtems.py
parentUse extension to attach a struct thread to threads (diff)
downloadrtems-libbsd-ed2ce44cd9edbae2d767105d989733091c0865e8.tar.bz2
Makefile: Generate map file
Diffstat (limited to 'freebsd-to-rtems.py')
-rwxr-xr-xfreebsd-to-rtems.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/freebsd-to-rtems.py b/freebsd-to-rtems.py
index bb7cd59c..241be0ee 100755
--- a/freebsd-to-rtems.py
+++ b/freebsd-to-rtems.py
@@ -310,6 +310,7 @@ class TestMakefileFragementComposer(MakefileFragmentComposer):
testDFiles = testPrefix + '_D_FILES'
testDir = 'testsuite/' + self.testName
testExe = testDir + '/' + self.testName + '.exe'
+ testMap = testDir + '/' + self.testName + '.map'
makefileFragment = '\n' + testPrefix + ' = ' + testExe + '\n' \
+ testOFiles + ' =\n' \
+ testDFiles + ' =\n'
@@ -317,7 +318,7 @@ class TestMakefileFragementComposer(MakefileFragmentComposer):
makefileFragment = makefileFragment + testOFiles + ' += ' + testDir + '/' + fileFragment + '.o\n' \
+ testDFiles + ' += ' + testDir + '/' + fileFragment + '.d\n'
makefileFragment = makefileFragment + '$(' + testPrefix + '): $(' + testOFiles + ') $(LIB)\n' \
- '\t$(LINK.c) $^ -lm -o $@\n' \
+ '\t$(LINK.c) -Wl,-Map,' + testMap + ' $^ -lm -o $@\n' \
'TESTS += $(' + testPrefix + ')\n' \
'O_FILES += $(' + testOFiles + ')\n' \
'D_FILES += $(' + testDFiles + ')\n'