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:
Alexander Boettcher 2013-12-06 11:49:30 +01:00 committed by Christian Helmuth
parent 776fdceaa5
commit 9759000538
2 changed files with 3 additions and 2 deletions

View File

@ -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-platform_arndale.mk)

View File

@ -211,6 +211,7 @@ proc build_boot_image_x86 {binaries} {
proc build_boot_image_arm {binaries} {
global run_target
global fiasco_serial_esc_arg
copy_and_strip_binaries $binaries
@ -254,7 +255,7 @@ proc build_boot_image_arm {binaries} {
if {[info exists ::env(PXE_TFTP_DIR_BASE)] &&
[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)"
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"
}
}