imgtec-ci20: genimage config/ u-boot env
[openadk.git] / package / barebox / Makefile
blobb4490f1d6bcdd96c3a1a4340c32b0dfaeac6ec56
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= barebox
7 PKG_VERSION:= 2019.09.0
8 PKG_RELEASE:= 1
9 PKG_HASH:= beab6bdba2466bece57d23834daf4f0d530a594efc11ca0ddb69372981e6e159
10 PKG_DESCR:= portable bootloader
11 PKG_SECTION:= base/boot
12 PKG_BUILDDEP:= lzop-host
13 PKG_URL:= http://www.barebox.org
14 PKG_SITES:= http://www.barebox.org/download/
16 DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2
18 include $(ADK_TOPDIR)/mk/package.mk
20 $(eval $(call PKG_template,BAREBOX,barebox,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
22 TARGET_LDFLAGS:=
23 CONFIG_STYLE:= manual
24 BUILD_STYLE:= manual
25 INSTALL_STYLE:= manual
27 BAREBOX_ARCH:= $(ADK_TARGET_ARCH)
28 ifeq ($(ADK_TARGET_ARCH_X86),y)
29 CONFIG:= efi_defconfig
30 endif
31 ifeq ($(ADK_TARGET_ARCH_X86_64),y)
32 CONFIG:= efi_defconfig
33 BAREBOX_ARCH:= x86
34 endif
35 ifeq ($(ADK_TARGET_SYSTEM_QEMU_MIPS),y)
36 CONFIG:= qemu-malta_defconfig
37 endif
38 ifeq ($(ADK_TARGET_SYSTEM_QEMU_ARM_VEXPRESS_A9),y)
39 CONFIG:= vexpress_ca9_defconfig
40 endif
41 ifeq ($(ADK_TARGET_SYSTEM_PHYTEC_IMX6),y)
42 CONFIG:= imx_v7_defconfig
43 endif
45 do-configure:
46 (cd $(WRKBUILD) && $(MAKE) ARCH=$(BAREBOX_ARCH) $(CONFIG))
48 do-build:
49 (cd $(WRKBUILD) && env \
50 PATH='$(HOST_PATH)' \
51 ARCH=$(BAREBOX_ARCH) \
52 CROSS_COMPILE='$(TARGET_CROSS)' \
53 $(MAKE))
55 barebox-install:
56 $(CP) $(WRKBUILD)/barebox.bin $(FW_DIR)
58 include $(ADK_TOPDIR)/mk/pkg-bottom.mk