Skip to content

Commit 1c46d55

Browse files
BernardXiongRbb666
authored andcommitted
[smart] Enhance build script with additional cleanup steps
1 parent 7e2b74a commit 1c46d55

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

components/lwp/vdso/user/arch/aarch64/SConstruct

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@ src = Glob('*.c')
2424
env = Environment(tools=['gcc', 'link'],
2525
AS = AS, ASFLAGS = AFLAGS,
2626
CC = CC, CFLAGS = CFLAGS,
27-
CPP = CPP, AR = AR,
27+
CPP = CPP, AR = AR,
2828
LINK = LINK, LINKFLAGS = LFLAGS)
2929
env.PrependENVPath('PATH', EXEC_PATH)
3030

3131
target = os.path.join(vdso_path, 'user', 'build', 'libvdso.so')
3232
shared_lib = env.SharedLibrary(target=target, source=src)
33+
Clean(shared_lib, '{vdso_usr}/vdso.lds'.format(vdso_usr=vdso_usr))
34+
Clean(shared_lib, '.sconsign.dblite')
3335
env.Default(shared_lib)

components/lwp/vdso/user/arch/risc-v/SConstruct

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,6 @@ env.PrependENVPath('PATH', EXEC_PATH)
3030

3131
target = os.path.join(vdso_path, 'user', 'build', 'libvdso.so')
3232
shared_lib = env.SharedLibrary(target=target, source=src)
33+
Clean(shared_lib, '{vdso_usr}/vdso.lds'.format(vdso_usr=vdso_usr))
34+
Clean(shared_lib, '.sconsign.dblite')
3335
env.Default(shared_lib)

components/lwp/vdso/user/arch/risc-v/vdso.lds.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ SECTIONS
3030
.rela.dyn : ALIGN(8) { *(.rela .rela*) }
3131

3232
.rodata : {
33-
*(.rodata*)
33+
*(.rodata*)
3434
*(.got)
3535
*(.got.plt)
3636
*(.plt)

0 commit comments

Comments
 (0)