Skip to content

Commit 2df7de2

Browse files
theotherjimmyadbridge
authored andcommitted
Correct Realtek post-build script to work in the online compiler
1 parent 84c1aee commit 2df7de2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/targets/REALTEK_RTL8195AM.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,11 +273,11 @@ def create_daplink(image_bin, ram1_bin, ram2_bin):
273273
# ----------------------------
274274
def rtl8195a_elf2bin(t_self, image_elf, image_bin):
275275

276-
image_name = os.path.splitext(image_elf)[0]
277-
image_map = image_name + '.map'
276+
image_name = list(os.path.splitext(image_elf))[:-1]
277+
image_map = ".".join(image_name + ['map'])
278278

279279
ram1_bin = os.path.join(TOOLS_BOOTLOADERS, "REALTEK_RTL8195AM", "ram_1.bin")
280-
ram2_bin = image_name + '-payload.bin'
280+
ram2_bin = ".".join(image_name) + '-payload.bin'
281281

282282
entry = find_symbol(t_self.name, image_map, "PLAT_Start")
283283
segment = parse_load_segment(t_self.name, image_elf)

0 commit comments

Comments
 (0)