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
7 PKG_VERSION
:= 2019.09.0
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
)))
25 INSTALL_STYLE
:= manual
27 BAREBOX_ARCH
:= $(ADK_TARGET_ARCH
)
28 ifeq ($(ADK_TARGET_ARCH_X86
),y
)
29 CONFIG
:= efi_defconfig
31 ifeq ($(ADK_TARGET_ARCH_X86_64
),y
)
32 CONFIG
:= efi_defconfig
35 ifeq ($(ADK_TARGET_SYSTEM_QEMU_MIPS
),y
)
36 CONFIG
:= qemu-malta_defconfig
38 ifeq ($(ADK_TARGET_SYSTEM_QEMU_ARM_VEXPRESS_A9
),y
)
39 CONFIG
:= vexpress_ca9_defconfig
41 ifeq ($(ADK_TARGET_SYSTEM_PHYTEC_IMX6
),y
)
42 CONFIG
:= imx_v7_defconfig
46 (cd
$(WRKBUILD
) && $(MAKE
) ARCH
=$(BAREBOX_ARCH
) $(CONFIG
))
49 (cd
$(WRKBUILD
) && env \
51 ARCH
=$(BAREBOX_ARCH
) \
52 CROSS_COMPILE
='$(TARGET_CROSS)' \
56 $(CP
) $(WRKBUILD
)/barebox.bin
$(FW_DIR
)
58 include $(ADK_TOPDIR
)/mk
/pkg-bottom.mk