From patchwork Wed Jun 13 08:51:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zoltan HERPAI X-Patchwork-Id: 928767 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=uid0.hu Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="c467A4wf"; 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 415L9j1vMxz9s0W for ; Wed, 13 Jun 2018 18:52:40 +1000 (AEST) 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:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject: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=PkRglHTrqrgcwBboWwWJR3f1jjhabVoXDcDiSmsUGOs=; b=c467A4wf/NZkPu B9FY3Li+zNngz7D5s0iRD/U24gwt5rHVAvufh3TQpdlUVRy6lNc8YYLzEtMNljBXSO1X8HWFv+vfE yc0LD1XhN/fd/l1i2gYOeoq+Z4wI6HGaeYEtqMhRh4XVUANqBdRi2vmRBwGRyn4x6FswRaEZLi1W5 bD2LrIENr3EUc8KIKugm0TmjAWRyrbuwh71Xq8+TN7vWelyxyU7oaS/VOTtaD/gWgzAxcw7LYq6Qi DdJxvwwwIOa5W3XtPEEfadPB7P5nr0suF8GJ8Y0womD/WC/LPhgAf+NeTiPtu+Ltr1IqB9uH+Hv45 Oj5XmVKHOo9PezXE4P8g==; 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 1fT1W3-0007im-FN; Wed, 13 Jun 2018 08:52:31 +0000 Received: from tunnel231050-pt.tunnel.tserv1.bud1.ipv6.he.net ([2001:470:1f1a:93::2] helo=trabant.uid0.hu) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fT1Vg-0007UU-0a for openwrt-devel@lists.openwrt.org; Wed, 13 Jun 2018 08:52:11 +0000 Received: from wigyori by trabant.uid0.hu with local (Exim 4.89 #1 (Debian)) id 1fT1VS-0006jY-FB from ; Wed, 13 Jun 2018 10:51:54 +0200 From: Zoltan HERPAI To: openwrt-devel@lists.openwrt.org Date: Wed, 13 Jun 2018 10:51:51 +0200 Message-Id: <1528879913-25844-2-git-send-email-wigyori@uid0.hu> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1528879913-25844-1-git-send-email-wigyori@uid0.hu> References: <1528879913-25844-1-git-send-email-wigyori@uid0.hu> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180613_015208_230733_E42F7A19 X-CRM114-Status: UNSURE ( 8.18 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- Subject: [OpenWrt-Devel] [PATCH 2/4] ath79: move Netgear build code into a common makefile 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: , Cc: Zoltan HERPAI , john@phrozen.org MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Signed-off-by: Zoltan HERPAI --- target/linux/ath79/image/common-netgear.mk | 22 ++++++++++++++++++++++ target/linux/ath79/image/generic.mk | 24 +----------------------- 2 files changed, 23 insertions(+), 23 deletions(-) create mode 100644 target/linux/ath79/image/common-netgear.mk diff --git a/target/linux/ath79/image/common-netgear.mk b/target/linux/ath79/image/common-netgear.mk new file mode 100644 index 0000000..ca4e005 --- /dev/null +++ b/target/linux/ath79/image/common-netgear.mk @@ -0,0 +1,22 @@ +define Build/netgear-squashfs + rm -rf $@.fs $@.squashfs + mkdir -p $@.fs/image + cp $@ $@.fs/image/uImage + $(STAGING_DIR_HOST)/bin/mksquashfs-lzma \ + $@.fs $@.squashfs -be \ + -noappend -root-owned -b 65536 \ + $(if $(SOURCE_DATE_EPOCH),-fixed-time $(SOURCE_DATE_EPOCH)) + + dd if=/dev/zero bs=1k count=1 >> $@.squashfs + mkimage \ + -A mips -O linux -T filesystem -C none \ + -M $(NETGEAR_KERNEL_MAGIC) \ + -a 0xbf070000 -e 0xbf070000 \ + -n 'MIPS $(VERSION_DIST) Linux-$(LINUX_VERSION)' \ + -d $@.squashfs $@ + rm -rf $@.squashfs $@.fs +endef + +define Build/netgear-uImage + $(call Build/uImage,$(1) -M $(NETGEAR_KERNEL_MAGIC)) +endef diff --git a/target/linux/ath79/image/generic.mk b/target/linux/ath79/image/generic.mk index 9475d0a..6e662ce 100644 --- a/target/linux/ath79/image/generic.mk +++ b/target/linux/ath79/image/generic.mk @@ -1,26 +1,4 @@ -define Build/netgear-squashfs - rm -rf $@.fs $@.squashfs - mkdir -p $@.fs/image - cp $@ $@.fs/image/uImage - $(STAGING_DIR_HOST)/bin/mksquashfs-lzma \ - $@.fs $@.squashfs \ - -noappend -root-owned -be -b 65536 \ - $(if $(SOURCE_DATE_EPOCH),-fixed-time $(SOURCE_DATE_EPOCH)) - - dd if=/dev/zero bs=1k count=1 >> $@.squashfs - mkimage \ - -A mips -O linux -T filesystem -C none \ - -M $(NETGEAR_KERNEL_MAGIC) \ - -a 0xbf070000 -e 0xbf070000 \ - -n 'MIPS $(VERSION_DIST) Linux-$(LINUX_VERSION)' \ - -d $@.squashfs $@ - rm -rf $@.squashfs $@.fs -endef - -define Build/netgear-uImage - $(call Build/uImage,$(1) -M $(NETGEAR_KERNEL_MAGIC)) -endef - +include ./common-netgear.mk define Device/avm_fritz300e ATH_SOC := ar7242