forked from Imagelibrary/rtems
libtests/dl*: Make build reproducible
Do not use a temporary file to create the symbol map. Close #4941.
This commit is contained in:
committed by
Amar Takhar
parent
cc034e7d2f
commit
5c5b4b832b
@@ -19,7 +19,7 @@ do-build: |
|
||||
self.link_cc(bld, bic, objs, dl01_pre)
|
||||
dl01_sym_o = path + "dl01-sym.o"
|
||||
objs.append(dl01_sym_o)
|
||||
self.rtems_syms(bld, dl01_pre, dl01_sym_o)
|
||||
self.rtems_syms(bld, bic, dl01_pre, dl01_sym_o)
|
||||
self.link_cc(bld, bic, objs, "testsuites/libtests/dl01.exe")
|
||||
do-configure: null
|
||||
enabled-by:
|
||||
|
||||
@@ -20,7 +20,7 @@ do-build: |
|
||||
self.link_cc(bld, bic, objs, dl02_pre)
|
||||
dl02_sym_o = path + "dl02-sym.o"
|
||||
objs.append(dl02_sym_o)
|
||||
self.rtems_syms(bld, dl02_pre, dl02_sym_o)
|
||||
self.rtems_syms(bld, bic, dl02_pre, dl02_sym_o)
|
||||
self.link_cc(bld, bic, objs, "testsuites/libtests/dl02.exe")
|
||||
do-configure: null
|
||||
enabled-by:
|
||||
|
||||
@@ -20,7 +20,7 @@ do-build: |
|
||||
self.link_cc(bld, bic, objs, dl04_pre)
|
||||
dl04_sym_o = path + "dl04-sym.o"
|
||||
objs.append(dl04_sym_o)
|
||||
self.rtems_syms(bld, dl04_pre, dl04_sym_o)
|
||||
self.rtems_syms(bld, bic, dl04_pre, dl04_sym_o)
|
||||
self.link_cc(bld, bic, objs, "testsuites/libtests/dl04.exe")
|
||||
do-configure: null
|
||||
enabled-by:
|
||||
|
||||
@@ -21,7 +21,7 @@ do-build: |
|
||||
self.link_cxx(bld, bic, objs, dl05_pre)
|
||||
dl05_sym_o = path + "dl05-sym.o"
|
||||
objs.append(dl05_sym_o)
|
||||
self.rtems_syms(bld, dl05_pre, dl05_sym_o)
|
||||
self.rtems_syms(bld, bic, dl05_pre, dl05_sym_o)
|
||||
self.link_cxx(bld, bic, objs, "testsuites/libtests/dl05.exe")
|
||||
do-configure: null
|
||||
enabled-by:
|
||||
|
||||
@@ -30,7 +30,7 @@ do-build: |
|
||||
objs.append(dl_load_o)
|
||||
dl06_sym_o = path + "dl06-sym.o"
|
||||
objs.append(dl06_sym_o)
|
||||
self.rtems_syms(bld, dl06_pre, dl06_sym_o)
|
||||
self.rtems_syms(bld, bic, dl06_pre, dl06_sym_o)
|
||||
self.link_cc(bld, bic, objs, "testsuites/libtests/dl06.exe")
|
||||
do-configure: null
|
||||
enabled-by:
|
||||
|
||||
@@ -23,7 +23,7 @@ do-build: |
|
||||
self.link_cc(bld, bic, objs, dl07_pre)
|
||||
dl07_sym_o = path + "dl07-sym.o"
|
||||
objs.append(dl07_sym_o)
|
||||
self.rtems_syms(bld, dl07_pre, dl07_sym_o)
|
||||
self.rtems_syms(bld, bic, dl07_pre, dl07_sym_o)
|
||||
self.link_cc(bld, bic, objs, "testsuites/libtests/dl07.exe")
|
||||
do-configure: null
|
||||
enabled-by:
|
||||
|
||||
@@ -28,7 +28,7 @@ do-build: |
|
||||
self.link_cc(bld, bic, objs, dl08_pre)
|
||||
dl08_sym_o = path + "dl08-sym.o"
|
||||
objs.append(dl08_sym_o)
|
||||
self.rtems_syms(bld, dl08_pre, dl08_sym_o)
|
||||
self.rtems_syms(bld, bic, dl08_pre, dl08_sym_o)
|
||||
self.link_cc(bld, bic, objs, "testsuites/libtests/dl08.exe")
|
||||
do-configure: null
|
||||
enabled-by:
|
||||
|
||||
@@ -23,7 +23,7 @@ do-build: |
|
||||
self.link_cc(bld, bic, objs, dl09_pre)
|
||||
dl09_sym_o = path + "dl09-sym.o"
|
||||
objs.append(dl09_sym_o)
|
||||
self.rtems_syms(bld, dl09_pre, dl09_sym_o)
|
||||
self.rtems_syms(bld, bic, dl09_pre, dl09_sym_o)
|
||||
self.link_cc(bld, bic, objs, "testsuites/libtests/dl09.exe")
|
||||
do-configure: null
|
||||
enabled-by:
|
||||
|
||||
@@ -28,7 +28,7 @@ do-build: |
|
||||
self.link_cc(bld, bic, objs, dl10_pre)
|
||||
dl10_sym_o = path + "dl10-sym.o"
|
||||
objs.append(dl10_sym_o)
|
||||
self.rtems_syms(bld, dl10_pre, dl10_sym_o)
|
||||
self.rtems_syms(bld, bic, dl10_pre, dl10_sym_o)
|
||||
self.link_cc(bld, bic, objs, "testsuites/libtests/dl10.exe")
|
||||
do-configure: null
|
||||
enabled-by:
|
||||
|
||||
@@ -19,7 +19,7 @@ do-build: |
|
||||
self.link_cc(bld, bic, objs, dl11_pre)
|
||||
dl11_sym_o = path + "dl11-sym.o"
|
||||
objs.append(dl11_sym_o)
|
||||
self.rtems_syms(bld, dl11_pre, dl11_sym_o)
|
||||
self.rtems_syms(bld, bic, dl11_pre, dl11_sym_o)
|
||||
self.link_cc(bld, bic, objs, "testsuites/libtests/dl11.exe")
|
||||
do-configure: null
|
||||
enabled-by:
|
||||
|
||||
@@ -26,7 +26,7 @@ do-build: |
|
||||
self.link_cc(bld, bic, objs, dl12_pre)
|
||||
dl12_sym_o = path + "dl12-sym.o"
|
||||
objs.append(dl12_sym_o)
|
||||
self.rtems_syms(bld, dl12_pre, dl12_sym_o)
|
||||
self.rtems_syms(bld, bic, dl12_pre, dl12_sym_o)
|
||||
self.link_cc(bld, bic, objs, "testsuites/libtests/dl12.exe")
|
||||
do-configure: null
|
||||
enabled-by:
|
||||
|
||||
9
wscript
9
wscript
@@ -515,13 +515,14 @@ class Item(object):
|
||||
bld(rule=run, source=source, target=[target_c, target_h])
|
||||
return target_c, target_h
|
||||
|
||||
def rtems_syms(self, bld, source, target):
|
||||
def rtems_syms(self, bld, bic, source, target):
|
||||
syms_source = os.path.splitext(target)[0] + ".c"
|
||||
bld(
|
||||
rule='${RTEMS_SYMS} -e -C ${CC} -c "${CFLAGS}" -o ${TGT} ${SRC}',
|
||||
rule='${RTEMS_SYMS} -e -S ${TGT} ${SRC}',
|
||||
source=source,
|
||||
target=target,
|
||||
target=syms_source,
|
||||
)
|
||||
return target
|
||||
return self.cc(bld, bic, syms_source, target)
|
||||
|
||||
def rtems_rap(self, bld, base, objects, libs, target):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user