mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-21 14:37:50 +00:00
foc: evaluate run_opt target for uboot link
Unify handling as base-hw does and enables us to use uBoot image for foc_panda.
This commit is contained in:
parent
776fdceaa5
commit
9759000538
@ -1,4 +1,4 @@
|
|||||||
SPECS += foc_arm platform_arndale uboot
|
SPECS += foc_arm platform_arndale
|
||||||
|
|
||||||
include $(call select_from_repositories,mk/spec-fpu_vfpv3.mk)
|
include $(call select_from_repositories,mk/spec-fpu_vfpv3.mk)
|
||||||
include $(call select_from_repositories,mk/spec-platform_arndale.mk)
|
include $(call select_from_repositories,mk/spec-platform_arndale.mk)
|
||||||
|
@ -211,6 +211,7 @@ proc build_boot_image_x86 {binaries} {
|
|||||||
|
|
||||||
proc build_boot_image_arm {binaries} {
|
proc build_boot_image_arm {binaries} {
|
||||||
|
|
||||||
|
global run_target
|
||||||
global fiasco_serial_esc_arg
|
global fiasco_serial_esc_arg
|
||||||
|
|
||||||
copy_and_strip_binaries $binaries
|
copy_and_strip_binaries $binaries
|
||||||
@ -254,7 +255,7 @@ proc build_boot_image_arm {binaries} {
|
|||||||
if {[info exists ::env(PXE_TFTP_DIR_BASE)] &&
|
if {[info exists ::env(PXE_TFTP_DIR_BASE)] &&
|
||||||
[info exists ::env(PXE_TFTP_DIR_OFFSET)]} {
|
[info exists ::env(PXE_TFTP_DIR_OFFSET)]} {
|
||||||
exec ln -sf "[pwd]/[run_dir]/image.elf" "$::env(PXE_TFTP_DIR_BASE)$::env(PXE_TFTP_DIR_OFFSET)"
|
exec ln -sf "[pwd]/[run_dir]/image.elf" "$::env(PXE_TFTP_DIR_BASE)$::env(PXE_TFTP_DIR_OFFSET)"
|
||||||
if {[have_spec uboot]} {
|
if {[regexp "uboot" $run_target]} {
|
||||||
exec ln -sf "[pwd]/[run_dir]/uImage" "$::env(PXE_TFTP_DIR_BASE)$::env(PXE_TFTP_DIR_OFFSET)/uImage"
|
exec ln -sf "[pwd]/[run_dir]/uImage" "$::env(PXE_TFTP_DIR_BASE)$::env(PXE_TFTP_DIR_OFFSET)/uImage"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user