cbfstool: remove trampoline_start and trampoline_size
It's not needed, so we can remove some extra file mangling, too. Change-Id: I80d707708e70c07a29653258b4cb6e9cd88d3de3 Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-on: https://review.coreboot.org/12508 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
@@ -24,9 +24,6 @@ linux_trampoline.c: linux_trampoline.S
|
||||
$(OBJCOPY) -Obinary -j .data linux_trampoline trampoline
|
||||
echo "/* This file is automatically generated. Do not manually change */" > trampoline.c
|
||||
xxd -c 16 -i trampoline >> trampoline.c
|
||||
perl -pi -e 's,unsigned int.*$$,,g;s,unsigned char,const unsigned char,g' trampoline.c
|
||||
echo "const void * const trampoline_start = &trampoline;" >> trampoline.c
|
||||
echo "const unsigned long trampoline_size = sizeof trampoline;" >> trampoline.c
|
||||
mv trampoline.c linux_trampoline.c
|
||||
rm linux_trampoline trampoline
|
||||
|
||||
|
Reference in New Issue
Block a user