From patchwork Fri Oct 19 17:37:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stijn Tintel X-Patchwork-Id: 986956 X-Patchwork-Delegate: blogic@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=linux-ipv6.be Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="MGlZU2Up"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linux-ipv6.be header.i=@linux-ipv6.be header.b="uDm6TUfx"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42cCn10jrWz9s9J for ; Sat, 20 Oct 2018 04:38:13 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=8O9FYbcD6Th/hmMmTm7a1NDRWr2Bjj9+4ToxcPW6UxU=; b=MGlZU2UprMTuxW66u4LZJydjRH iNx4Y7Ep1LJU+8LZK8QxOixz7BvdI0ZrtfTJCDOZuZMPCwtpz8LZQqgHnk5SY8eyJS/R9bRv3ECLp s+9Yd7LgoQb0i92gqU8ri0iiuJ/IR2SVLiobHEOuMnNmbJqBqrgcFyq5NhPkPkPMW3z2FZs7Bby69 UWSKB8TvSBI4BVGEdVzCPeOUOWTZ9bKb/PgxgJIEjh1OeusIXtpZgQmqOxe9jo2Qgyw44Hj95NGOg Ldos0I99XeZjBfaeril8ycEvCmTEHDDSuiSIK2wI/Y+UL1zqHVm473wPEhyfrFgcOzQPBM7wE5Yst x0YtPDGQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gDYim-0000Eb-GN; Fri, 19 Oct 2018 17:38:00 +0000 Received: from mail.tintel.eu ([54.36.12.13]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gDYiE-0008Qs-EP for openwrt-devel@lists.openwrt.org; Fri, 19 Oct 2018 17:37:31 +0000 Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id 42266435B51B for ; Fri, 19 Oct 2018 19:37:11 +0200 (CEST) Received: from mail.tintel.eu ([IPv6:::1]) by localhost (mail.tintel.eu [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id i6w-e-W40aSl for ; Fri, 19 Oct 2018 19:37:11 +0200 (CEST) Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id D844F435B516 for ; Fri, 19 Oct 2018 19:37:10 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.tintel.eu D844F435B516 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-ipv6.be; s=502B7754-045F-11E5-BBC5-64595FD46BE8; t=1539970630; bh=OCDniddwGMNuZOkiE0/V9kVKEHc/xzLNadikW+gWY58=; h=From:To:Date:Message-Id; b=uDm6TUfxe5hoUmk3MGcJXkHwUnVXwnbLO283es5FDHdoy1LGX/HbEfQ0rFHfvK6Kd RFskIYruEFAI2pUe3Hm0j8ka+jzU1i+oZdDy33gq6b/bmO4RWeCVj53rNldv/QHgch 1L3xtFshsH63Qz4qCdqsmvJGpdGByQVR34ngXUro= X-Virus-Scanned: amavisd-new at mail.tintel.eu Received: from mail.tintel.eu ([IPv6:::1]) by localhost (mail.tintel.eu [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id XYG7P4X_Ycym for ; Fri, 19 Oct 2018 19:37:10 +0200 (CEST) Received: from taz.sof.bg.adlevio.net (taz.sof.bg.adlevio.net [IPv6:2001:67c:21bc:24::adb]) by mail.tintel.eu (Postfix) with SMTP id F3C1242AA2A4 for ; Fri, 19 Oct 2018 19:37:09 +0200 (CEST) Received: (nullmailer pid 23007 invoked by uid 1000); Fri, 19 Oct 2018 17:37:07 -0000 From: Stijn Tintel To: openwrt-devel@lists.openwrt.org Date: Fri, 19 Oct 2018 20:37:04 +0300 Message-Id: <20181019173707.22951-3-stijn@linux-ipv6.be> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20181019173707.22951-1-stijn@linux-ipv6.be> References: <20181019173707.22951-1-stijn@linux-ipv6.be> X-Rspamd-Queue-Id: F3C1242AA2A4 X-Spamd-Result: default: False [3.09 / 15.00]; ARC_NA(0.00)[]; R_SPF_FAIL(1.00)[-all]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.53)[0.267,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[linux-ipv6.be]; RCPT_COUNT_ONE(0.00)[1]; MID_CONTAINS_FROM(1.00)[]; RCVD_NO_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; IP_SCORE(0.65)[ip: (1.49), ipnet: 2001:67c:21bc::/48(1.04), asn: 200533(0.64), country: BG(0.09)]; ASN(0.00)[asn:200533, ipnet:2001:67c:21bc::/48, country:BG]; RCVD_COUNT_TWO(0.00)[2]; BAYES_HAM(-0.00)[15.18%] X-Rspamd-Server: musltoo X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181019_103726_814987_6E319449 X-CRM114-Status: UNSURE ( 8.13 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.2 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.1 DKIM_INVALID DKIM or DK signature exists, but is not valid Subject: [OpenWrt-Devel] [PATCH 2/5] tools: add fiptool X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Signed-off-by: Stijn Tintel --- tools/Makefile | 2 +- tools/fiptool/Makefile | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 tools/fiptool/Makefile diff --git a/tools/Makefile b/tools/Makefile index 0adc13acbf..f11c738ac6 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -38,7 +38,7 @@ tools-$(BUILD_B43_TOOLS) += b43-tools tools-$(BUILD_ISL) += isl tools-$(CONFIG_USE_SPARSE) += sparse tools-$(CONFIG_TARGET_apm821xx) += genext2fs -tools-$(CONFIG_TARGET_mesongx) += meson-tools +tools-$(CONFIG_TARGET_mesongx) += fiptool meson-tools # builddir dependencies $(curdir)/bison/compile := $(curdir)/flex/compile diff --git a/tools/fiptool/Makefile b/tools/fiptool/Makefile new file mode 100644 index 0000000000..e92729e51a --- /dev/null +++ b/tools/fiptool/Makefile @@ -0,0 +1,37 @@ +# +# Copyright (C) 2017 Stijn Tintel +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +include $(TOPDIR)/rules.mk + +PKG_NAME:=fiptool + +PKG_SOURCE_URL=https://github.com/hardkernel/u-boot.git +PKG_SOURCE_PROTO:=git +PKG_SOURCE_DATE:=2016-06-01 +PKG_SOURCE_VERSION:=3a2dd09540d3639671d86145336f400ec07b1a4e + +PKG_LICENSE:=BSD-3-Clause + +include $(INCLUDE_DIR)/host-build.mk + +define Host/Compile + +$(HOST_MAKE_VARS) \ + $(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR)/tools/fip_create \ + $(HOST_MAKE_FLAGS) \ + $(1) +endef + +define Host/Install + $(INSTALL_BIN) \ + $(HOST_BUILD_DIR)/tools/fip_create/fip_create \ + $(STAGING_DIR_HOST)/bin/ +endef + +define Host/Clean + rm -f $(STAGING_DIR_HOST)/bin/fip_create +endef + +$(eval $(call HostBuild))