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 # last working hash fa0e8426833edc1be3c2ea3acaf248157048a15a
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
)))
27 HOST_MAKE_FLAGS
+= HOSTCFLAGS
="$(HOST_CPPFLAGS) $(HOST_CFLAGS)" \
28 HOSTLDFLAGS
="$(HOST_LDFLAGS) -ldl"
32 INSTALL_STYLE
:= manual
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
) )
41 $(INSTALL_BIN
) $(WRKBUILD
)/tools
/mk
{,env
}image \
42 $(STAGING_HOST_DIR
)/usr
/bin
45 (cd
$(WRKBUILD
) && $(MAKE
) $(CONFIG
))
48 (cd
$(WRKBUILD
) && env \
50 CROSS_COMPILE
='$(TARGET_CROSS)' \
51 GCC_HONOUR_COPTS
=s
$(MAKE
))
52 ifneq ($(OS_FOR_BUILD
),Darwin
)
53 (cd
$(WRKBUILD
) && env \
55 CROSS_COMPILE
='$(TARGET_CROSS)' \
56 GCC_HONOUR_COPTS
=s
$(MAKE
) env
)
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