diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2017-09-17 14:47:04 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2017-09-17 14:47:04 +0200 |
commit | 882e048b442338c199b9469ca87569def6ec7ba4 (patch) | |
tree | 81b9e1bd977ca2b3b7ef0dd6eac15410aad07c81 /package/u-boot-h8300 | |
parent | 61e50d362c0720a350e16570689132d731c62c31 (diff) |
u-boot-h8300: add back, needed for mkimage hosttool
Diffstat (limited to 'package/u-boot-h8300')
-rw-r--r-- | package/u-boot-h8300/Makefile | 66 | ||||
-rw-r--r-- | package/u-boot-h8300/patches/patch-include_linux_compiler-gcc_h | 11 |
2 files changed, 77 insertions, 0 deletions
diff --git a/package/u-boot-h8300/Makefile b/package/u-boot-h8300/Makefile new file mode 100644 index 000000000..e26b4fd59 --- /dev/null +++ b/package/u-boot-h8300/Makefile @@ -0,0 +1,66 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(ADK_TOPDIR)/rules.mk + +PKG_NAME:= u-boot +PKG_VERSION:= h8300 +PKG_GIT:= branch +PKG_RELEASE:= 1 +PKG_DESCR:= portable bootloader +PKG_SECTION:= base/boot +HOST_BUILDDEP:= libressl-host dtc-host +PKG_BUILDDEP:= u-boot-h8300-host +PKG_SITES:= git://git.pf.osdn.jp/gitroot/y/ys/ysato/uboot.git + + +PKG_SYSTEM_DEPENDS:= hitachi-edosk2674 + +include $(ADK_TOPDIR)/mk/host.mk +include $(ADK_TOPDIR)/mk/package.mk + +$(eval $(call HOST_template,U_BOOT,u-boot,$(PKG_VERSION)-$(PKG_RELEASE))) +$(eval $(call PKG_template,U_BOOT,u-boot,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION))) + +UBOOT:= u-boot.bin +CONFIG:= clearfog_defconfig + +HOST_MAKE_FLAGS+= HOSTCFLAGS="$(HOST_CPPFLAGS) $(HOST_CFLAGS)" \ + HOSTLDFLAGS="$(HOST_LDFLAGS) -ldl" +HOST_STYLE:= manual +CONFIG_STYLE:= manual +BUILD_STYLE:= manual +INSTALL_STYLE:= manual + +host-build: + (cd $(WRKBUILD) && env $(HOST_MAKE_ENV) $(MAKE) -f $(MAKE_FILE) \ + $(HOST_MAKE_FLAGS) sandbox_defconfig ) + (cd $(WRKBUILD) && env $(HOST_MAKE_ENV) $(MAKE) -f $(MAKE_FILE) \ + $(HOST_MAKE_FLAGS) tools $(MAKE_TRACE) ) + +u-boot-hostinstall: + $(INSTALL_BIN) $(WRKBUILD)/tools/mk{,env}image \ + $(STAGING_HOST_DIR)/usr/bin + +do-configure: + (cd $(WRKBUILD) && $(MAKE) $(CONFIG)) + +do-build: + (cd $(WRKBUILD) && env \ + PATH='$(HOST_PATH)' \ + CROSS_COMPILE='$(TARGET_CROSS)' \ + GCC_HONOUR_COPTS=s $(MAKE)) +ifneq ($(OS_FOR_BUILD),Darwin) + (cd $(WRKBUILD) && env \ + PATH='$(HOST_PATH)' \ + CROSS_COMPILE='$(TARGET_CROSS)' \ + GCC_HONOUR_COPTS=s $(MAKE) env) +endif + +u-boot-install: + $(CP) $(WRKBUILD)/$(UBOOT) $(FW_DIR) + $(INSTALL_DIR) $(IDIR_U_BOOT)/etc + $(CP) ./files/fw_env.config $(IDIR_U_BOOT)/etc + +include $(ADK_TOPDIR)/mk/host-bottom.mk +include $(ADK_TOPDIR)/mk/pkg-bottom.mk diff --git a/package/u-boot-h8300/patches/patch-include_linux_compiler-gcc_h b/package/u-boot-h8300/patches/patch-include_linux_compiler-gcc_h new file mode 100644 index 000000000..9780e2175 --- /dev/null +++ b/package/u-boot-h8300/patches/patch-include_linux_compiler-gcc_h @@ -0,0 +1,11 @@ +--- u-boot-h8300.orig/include/linux/compiler-gcc.h 2017-08-02 19:27:30.000000000 +0200 ++++ u-boot-h8300/include/linux/compiler-gcc.h 2017-08-02 19:51:29.008209716 +0200 +@@ -109,7 +109,7 @@ + #define __always_unused __attribute__((unused)) + + #define __gcc_header(x) #x +-#define _gcc_header(x) __gcc_header(linux/compiler-gcc##x.h) ++#define _gcc_header(x) __gcc_header(linux/compiler-gcc5.h) + #define gcc_header(x) _gcc_header(x) + #include gcc_header(__GNUC__) + |