Makefile: generate a barebox-flash-image link
Depending on the SoC a barebox.bin, barebox.netx, barebox.s5p, MLO image is generated. With pbl support there now is an additional arch/arm/pbl/zbarebox.bin image. To help the user to determine which image should be flashed to his device, generate a barebox-flash-image link. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
parent
8e724b3d3e
commit
b615445564
15
Makefile
15
Makefile
|
@ -437,12 +437,6 @@ else
|
|||
include/config/auto.conf: ;
|
||||
endif # $(dot-config)
|
||||
|
||||
# The all: target is the default when no target is given on the
|
||||
# command line.
|
||||
# This allow a user to issue only 'make' to build a kernel
|
||||
# Defaults barebox but it is usually overridden in the arch makefile
|
||||
all: barebox.bin
|
||||
|
||||
include $(srctree)/arch/$(ARCH)/Makefile
|
||||
|
||||
ifdef CONFIG_DEBUG_INFO
|
||||
|
@ -473,7 +467,12 @@ CFLAGS += $(call cc-option,-Wno-pointer-sign,)
|
|||
# set in the environment
|
||||
# Also any assignments in arch/$(ARCH)/Makefile take precedence over
|
||||
# this default value
|
||||
export KBUILD_IMAGE ?= barebox
|
||||
export KBUILD_IMAGE ?= barebox.bin
|
||||
|
||||
barebox-flash-image: $(KBUILD_IMAGE)
|
||||
$(call if_changed,ln)
|
||||
|
||||
all: barebox-flash-image
|
||||
|
||||
common-$(CONFIG_PBL_IMAGE) += pbl/
|
||||
|
||||
|
@ -1009,7 +1008,7 @@ CLEAN_DIRS += $(MODVERDIR)
|
|||
CLEAN_FILES += barebox System.map include/generated/barebox_default_env.h \
|
||||
.tmp_version .tmp_barebox* barebox.bin barebox.map barebox.S \
|
||||
.tmp_kallsyms* barebox_default_env* barebox.ldr \
|
||||
scripts/bareboxenv-target \
|
||||
scripts/bareboxenv-target barebox-flash-image \
|
||||
Doxyfile.version barebox.srec barebox.s5p
|
||||
|
||||
# Directories & files removed with 'make mrproper'
|
||||
|
|
|
@ -208,8 +208,6 @@ zbarebox.S zbarebox.bin zbarebox: barebox.bin
|
|||
archclean:
|
||||
$(MAKE) $(clean)=$(pbl)
|
||||
|
||||
all: $(KBUILD_IMAGE)
|
||||
|
||||
archprepare: maketools
|
||||
maketools:
|
||||
$(Q)$(MAKE) $(build)=arch/arm/tools include/generated/mach-types.h
|
||||
|
|
|
@ -13,7 +13,7 @@ CFLAGS += -D__blackfin__
|
|||
KALLSYMS += --symbol-prefix=_
|
||||
|
||||
ifndef CONFIG_BFIN_BOOT_BYPASS
|
||||
all: barebox.ldr
|
||||
KBUILD_IMAGE := barebox.ldr
|
||||
endif
|
||||
|
||||
archprepare: maketools
|
||||
|
|
|
@ -82,8 +82,6 @@ incdir-y := $(machine-y)
|
|||
endif
|
||||
INCDIR := arch-$(incdir-y)
|
||||
|
||||
all: $(KBUILD_IMAGE)
|
||||
|
||||
ifneq ($(board-y),)
|
||||
BOARD := arch/mips/boards/$(board-y)/
|
||||
else
|
||||
|
|
|
@ -14,11 +14,6 @@ CPPFLAGS += -fdata-sections -ffunction-sections
|
|||
LDFLAGS_uboot += -static --gc-sections
|
||||
endif
|
||||
|
||||
all: $(KBUILD_IMAGE)
|
||||
|
||||
|
||||
|
||||
|
||||
machdirs := $(patsubst %,arch/x86/mach-%/,$(machine-y))
|
||||
|
||||
ifeq ($(KBUILD_SRC),)
|
||||
|
|
Loading…
Reference in New Issue