From 72389a9b944aaafd6f1ff96e656d6fee11a3050f Mon Sep 17 00:00:00 2001 From: Zoltan HERPAI Date: Mon, 20 Aug 2018 23:07:19 +0200 Subject: [PATCH] tools: add gptfdisk for riscv64 image generation Signed-off-by: Zoltan HERPAI --- tools/Makefile | 1 + tools/gptfdisk/Makefile | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 tools/gptfdisk/Makefile diff --git a/tools/Makefile b/tools/Makefile index c66d4fb991..9fd9572397 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -32,6 +32,7 @@ tools-$(BUILD_TOOLCHAIN) += expat gmp libelf mpc mpfr tools-$(CONFIG_TARGET_apm821xx)$(CONFIG_TARGET_gemini) += genext2fs tools-$(CONFIG_TARGET_ath79) += lzma-old squashfs tools-$(CONFIG_TARGET_mxs) += elftosb sdimage +tools-$(CONFIG_TARGET_riscv64) += gptfdisk tools-$(CONFIG_TARGET_tegra) += cbootimage cbootimage-configs tools-$(CONFIG_TARGET_x86) += qemu tools-$(CONFIG_USES_MINOR) += kernel2minor diff --git a/tools/gptfdisk/Makefile b/tools/gptfdisk/Makefile new file mode 100644 index 0000000000..02f83378fb --- /dev/null +++ b/tools/gptfdisk/Makefile @@ -0,0 +1,33 @@ +# +# Copyright (C) 2015 OpenWrt.org +# Copyright (C) 2016 LEDE project +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +include $(TOPDIR)/rules.mk + +PKG_NAME:=gptfdisk +PKG_VERSION:=1.0.5 + +PKG_SOURCE:=gptfdisk-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=@SF/gptfdisk +PKG_HASH:=0e7d3987cd0488ecaf4b48761bc97f40b1dc089e5ff53c4b37abe30bc67dcb2f + +PKG_BUILD_PARALLEL:=1 + +include $(INCLUDE_DIR)/host-build.mk + +define Host/Compile + $(MAKE) -C $(HOST_BUILD_DIR) sgdisk +endef + +define Host/Install + $(INSTALL_BIN) $(HOST_BUILD_DIR)/sgdisk $(STAGING_DIR_HOST)/bin/ +endef + +define Host/Clean + rm -f $(STAGING_DIR_HOST)/bin/sgdisk +endef + +$(eval $(call HostBuild)) -- 2.30.2