From patchwork Wed Oct 23 10:53:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Petr_=C5=A0tetiar?= X-Patchwork-Id: 1182048 X-Patchwork-Delegate: ynezz@true.cz Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) 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=true.cz Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="OuGXuziM"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46ynML59yxz9sPV for ; Wed, 23 Oct 2019 21:54:54 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=HLVl6U5LG7DKy8qAfaKlz5taq9SHEIVS3Q3cFcaXov8=; b=OuGXuziMvg9uUo cgJKML5xhUgDxZ2DgADVNva29TX4P1NgtgWjNnvnQ9Yj+aBjVHfouUV9cA8rm2jMxy2p1mOXI8qQ9 tLge5Qo6PBcE+MEGQ/oMYtcgMyzt/5b/hCLw1zzvLYsaZ3A0Thv4LusLhAdGg75M5BZdQ8PaIcYry 0B2PFmyVMyNS3PdHnTHy7WZgSyCRjs6GhNyCRqEoSnezzFs1NXEiTrNTEpNAhmYdQfZz0V5BRjEQ+ qpRLo7NIR0MNECWPsj21RHoTkQWGz5KM056emyOk6ekTHtJCUFZDzgaWuKA4rOSK6cMHtIlVdtb5P k1LSx5bzYqVfBU9p0ZTA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iNEHp-0002Ea-J5; Wed, 23 Oct 2019 10:54:41 +0000 Received: from smtp-out.xnet.cz ([178.217.244.18]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iNEH2-0000zJ-4N for openwrt-devel@lists.openwrt.org; Wed, 23 Oct 2019 10:53:55 +0000 Received: from meh.true.cz (meh.true.cz [108.61.167.218]) (Authenticated sender: petr@true.cz) by smtp-out.xnet.cz (Postfix) with ESMTPSA id 5488A523C; Wed, 23 Oct 2019 12:53:45 +0200 (CEST) Received: by meh.true.cz (OpenSMTPD) with ESMTP id a670bf53; Wed, 23 Oct 2019 12:53:35 +0200 (CEST) From: =?utf-8?q?Petr_=C5=A0tetiar?= To: openwrt-devel@lists.openwrt.org Date: Wed, 23 Oct 2019 12:53:32 +0200 Message-Id: <20191023105339.16326-2-ynezz@true.cz> In-Reply-To: <20191023105339.16326-1-ynezz@true.cz> References: <20191023105339.16326-1-ynezz@true.cz> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191023_035352_346791_290CB169 X-CRM114-Status: UNSURE ( 4.84 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [178.217.244.18 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record Subject: [OpenWrt-Devel] [PATCH fwtool 1/8] refactor into separate Git project X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Petr_=C5=A0tetiar?= Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org For improved reusability, testing etc. Signed-off-by: Petr Štetiar --- Makefile | 47 -------------------------------------- src/crc32.h => crc32.h | 0 src/fwimage.h => fwimage.h | 0 src/fwtool.c => fwtool.c | 0 src/utils.h => utils.h | 0 5 files changed, 47 deletions(-) delete mode 100644 Makefile rename src/crc32.h => crc32.h (100%) rename src/fwimage.h => fwimage.h (100%) rename src/fwtool.c => fwtool.c (100%) rename src/utils.h => utils.h (100%) diff --git a/Makefile b/Makefile deleted file mode 100644 index 283be8d77a0e..000000000000 --- a/Makefile +++ /dev/null @@ -1,47 +0,0 @@ -# -# Copyright (C) Felix Fietkau -# -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# - -include $(TOPDIR)/rules.mk - -PKG_NAME:=fwtool -PKG_RELEASE:=2 - -PKG_FLAGS:=nonshared - -PKG_MAINTAINER := Felix Fietkau -PKG_BUILD_DEPENDS := fwtool/host - -include $(INCLUDE_DIR)/package.mk -include $(INCLUDE_DIR)/host-build.mk - -HOST_BUILD_PREFIX:=$(STAGING_DIR_HOST) - -define Package/fwtool - SECTION:=utils - CATEGORY:=Base system - TITLE:=Utility for appending and extracting firmware metadata and signatures -endef - -define Host/Compile - $(HOSTCC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $(HOST_BUILD_DIR)/fwtool ./src/fwtool.c -endef - -define Host/Install - $(INSTALL_BIN) $(HOST_BUILD_DIR)/fwtool $(1)/bin/ -endef - -define Build/Compile - $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -o $(PKG_BUILD_DIR)/fwtool ./src/fwtool.c -endef - -define Package/fwtool/install - $(INSTALL_DIR) $(1)/usr/bin - $(INSTALL_BIN) $(PKG_BUILD_DIR)/fwtool $(1)/usr/bin/ -endef - -$(eval $(call HostBuild)) -$(eval $(call BuildPackage,fwtool)) diff --git a/src/crc32.h b/crc32.h similarity index 100% rename from src/crc32.h rename to crc32.h diff --git a/src/fwimage.h b/fwimage.h similarity index 100% rename from src/fwimage.h rename to fwimage.h diff --git a/src/fwtool.c b/fwtool.c similarity index 100% rename from src/fwtool.c rename to fwtool.c diff --git a/src/utils.h b/utils.h similarity index 100% rename from src/utils.h rename to utils.h