imgtec-ci20: genimage config/ u-boot env
[openadk.git] / package / u-boot-h8300 / Makefile
blobbfd0824dfdc0f4798c696ae299cdab45198896c3
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:= u-boot
7 # last working hash fa0e8426833edc1be3c2ea3acaf248157048a15a
8 PKG_VERSION:= h8300
9 PKG_GIT:= branch
10 PKG_RELEASE:= 1
11 PKG_DESCR:= portable bootloader
12 PKG_SECTION:= base/boot
13 HOST_BUILDDEP:= libressl-host dtc-host
14 PKG_BUILDDEP:= u-boot-h8300-host
15 PKG_SITES:= git://git.pf.osdn.jp/gitroot/y/ys/ysato/uboot.git
17 PKG_SYSTEM_DEPENDS:= hitachi-edosk2674
19 include $(ADK_TOPDIR)/mk/host.mk
20 include $(ADK_TOPDIR)/mk/package.mk
22 $(eval $(call HOST_template,U_BOOT,u-boot,$(PKG_VERSION)-$(PKG_RELEASE)))
23 $(eval $(call PKG_template,U_BOOT,u-boot,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
25 UBOOT:= u-boot.bin
27 HOST_MAKE_FLAGS+= HOSTCFLAGS="$(HOST_CPPFLAGS) $(HOST_CFLAGS)" \
28 HOSTLDFLAGS="$(HOST_LDFLAGS) -ldl"
29 HOST_STYLE:= manual
30 CONFIG_STYLE:= manual
31 BUILD_STYLE:= manual
32 INSTALL_STYLE:= manual
34 host-build:
35 (cd $(WRKBUILD) && env $(HOST_MAKE_ENV) $(MAKE) -f $(MAKE_FILE) \
36 $(HOST_MAKE_FLAGS) sandbox_defconfig )
37 (cd $(WRKBUILD) && env $(HOST_MAKE_ENV) $(MAKE) -f $(MAKE_FILE) \
38 $(HOST_MAKE_FLAGS) tools $(MAKE_TRACE) )
40 u-boot-hostinstall:
41 $(INSTALL_BIN) $(WRKBUILD)/tools/mk{,env}image \
42 $(STAGING_HOST_DIR)/usr/bin
44 do-configure:
45 (cd $(WRKBUILD) && $(MAKE) $(CONFIG))
47 do-build:
48 (cd $(WRKBUILD) && env \
49 PATH='$(HOST_PATH)' \
50 CROSS_COMPILE='$(TARGET_CROSS)' \
51 GCC_HONOUR_COPTS=s $(MAKE))
52 ifneq ($(OS_FOR_BUILD),Darwin)
53 (cd $(WRKBUILD) && env \
54 PATH='$(HOST_PATH)' \
55 CROSS_COMPILE='$(TARGET_CROSS)' \
56 GCC_HONOUR_COPTS=s $(MAKE) env)
57 endif
59 u-boot-install:
60 $(CP) $(WRKBUILD)/$(UBOOT) $(FW_DIR)
61 $(INSTALL_DIR) $(IDIR_U_BOOT)/etc
62 $(CP) ./files/fw_env.config $(IDIR_U_BOOT)/etc
64 include $(ADK_TOPDIR)/mk/host-bottom.mk
65 include $(ADK_TOPDIR)/mk/pkg-bottom.mk