mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
Add a Kconfig option for choosing the payload filename and path.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@180 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
1a62f0a12b
commit
41b2c207be
2 changed files with 11 additions and 1 deletions
10
Kconfig
10
Kconfig
|
@ -10,3 +10,13 @@ source arch/Kconfig
|
|||
source lib/Kconfig
|
||||
source console/Kconfig
|
||||
|
||||
menu "Payload"
|
||||
|
||||
config PAYLOAD
|
||||
string "Payload filename"
|
||||
default "filo.elf"
|
||||
help
|
||||
The path and filename of the payload file to use.
|
||||
|
||||
endmenu
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ $(obj)/linuxbios.lar: $(obj)/util/lar/lar lzma $(obj)/linuxbios.initram $(obj)/l
|
|||
$(Q)mkdir $(obj)/lar.tmp/normal
|
||||
$(Q)cp $(obj)/linuxbios.initram $(obj)/lar.tmp/normal/initram
|
||||
$(Q)cp $(obj)/linuxbios.stage2 $(obj)/lar.tmp/normal/stage2
|
||||
$(Q)cp $(PAYLOAD) $(obj)/lar.tmp/normal/payload
|
||||
$(Q)cp $(CONFIG_PAYLOAD) $(obj)/lar.tmp/normal/payload
|
||||
$(Q)printf " "
|
||||
$(Q)cd $(obj)/lar.tmp && ../util/lar/lar c ../linuxbios.lar.pre normal/initram normal/stage2 normal/payload
|
||||
$(Q)# TODO: Dynamically pad the LAR archive. bs is image size - bootblock size (16k)
|
||||
|
|
Loading…
Add table
Reference in a new issue