mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-28 20:44:26 +01:00
Make userland / assembly getting started more uniform / visible
Forward --gcc-which to ./run --tmux. Use gdb-multiarch for --gcc-which host.
This commit is contained in:
@@ -90,7 +90,7 @@ Build the baremetal examples with crosstool-NG.
|
||||
cflags.extend(self.sh.shlex_split(self.env['ccflags']))
|
||||
if self.need_rebuild([src], bootloader_obj):
|
||||
self.sh.run_cmd(
|
||||
[self.env['gcc'], LF] +
|
||||
[self.env['gcc_path'], LF] +
|
||||
cflags +
|
||||
[
|
||||
'-c', LF,
|
||||
@@ -105,7 +105,7 @@ Build the baremetal examples with crosstool-NG.
|
||||
]:
|
||||
if self.need_rebuild([src, self.env['common_h']], obj):
|
||||
self.sh.run_cmd(
|
||||
[self.env['gcc'], LF] +
|
||||
[self.env['gcc_path'], LF] +
|
||||
cflags +
|
||||
[
|
||||
'-D', 'UART0_ADDR={:#x}'.format(uart_address), LF,
|
||||
@@ -147,7 +147,7 @@ Build the baremetal examples with crosstool-NG.
|
||||
out
|
||||
):
|
||||
self.sh.run_cmd(
|
||||
[self.env['gcc'], LF] +
|
||||
[self.env['gcc_path'], LF] +
|
||||
cflags +
|
||||
[
|
||||
'-Wl,--section-start=.text={:#x}'.format(entry_address), LF,
|
||||
|
||||
Reference in New Issue
Block a user