From patchwork Fri May 22 13:52:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stijn Tintel X-Patchwork-Id: 475610 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id A12B3140D5F for ; Fri, 22 May 2015 23:53:31 +1000 (AEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id F23D428BFA6; Fri, 22 May 2015 15:51:20 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 6B3E0280642 for ; Fri, 22 May 2015 15:50:57 +0200 (CEST) X-policyd-weight: using cached result; rate: -7.6 Received: from mail.tintel.eu (mail.tintel.eu [62.213.201.86]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Fri, 22 May 2015 15:50:56 +0200 (CEST) Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id 6305F2A1C01 for ; Fri, 22 May 2015 15:52:18 +0200 (CEST) Received: from mail.tintel.eu ([IPv6:::1]) by localhost (mail.tintel.eu [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id Cq02kbm6LFHU for ; Fri, 22 May 2015 15:52:14 +0200 (CEST) Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id 3444F2A1C02 for ; Fri, 22 May 2015 15:52:14 +0200 (CEST) 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 e6FQYEHVVNzd for ; Fri, 22 May 2015 15:52:14 +0200 (CEST) Received: from taz.st-esk.be.tintel.eu (unknown [IPv6:2a02:1811:42a:7850:12bf:48ff:fed5:44b8]) by mail.tintel.eu (Postfix) with SMTP id 0995B2A1C01 for ; Fri, 22 May 2015 15:52:13 +0200 (CEST) Received: by taz.st-esk.be.tintel.eu (sSMTP sendmail emulation); Fri, 22 May 2015 15:52:14 +0200 From: Stijn Tintel To: openwrt-devel@lists.openwrt.org Date: Fri, 22 May 2015 15:52:14 +0200 Message-Id: <1432302734-19474-1-git-send-email-stijn@linux-ipv6.be> X-Mailer: git-send-email 2.0.5 Subject: [OpenWrt-Devel] [PATCH] octeon: build squashfs image for UBNT ERLITE X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Signed-off-by: Stijn Tintel --- target/linux/octeon/image/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/target/linux/octeon/image/Makefile b/target/linux/octeon/image/Makefile index 24bca9b..a15e87b 100644 --- a/target/linux/octeon/image/Makefile +++ b/target/linux/octeon/image/Makefile @@ -20,24 +20,27 @@ define Image/BuildKernel/Initramfs/Template endef ER_CMDLINE:=-mtdparts=phys_mapped_flash:640k(boot0)ro,640k(boot1)ro,64k(eeprom)ro block2mtd.block2mtd=/dev/mmcblk0p2,65536,rootfs,5 root=/dev/mtdblock3 rootfstype=squashfs rootwait +ERLITE_CMDLINE:=-mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),64k@1024k(eeprom) block2mtd.block2mtd=/dev/sda2,65536,rootfs,5 root=/dev/mtdblock3 rootfstype=squashfs rootwait define Image/BuildKernel $(call Image/BuildKernel/Template,generic,) $(call Image/BuildKernel/Template,er,$(ER_CMDLINE)) + $(call Image/BuildKernel/Template,erlite,$(ERLITE_CMDLINE)) endef define Image/BuildKernel/Initramfs $(call Image/BuildKernel/Initramfs/Template,generic,) $(call Image/BuildKernel/Initramfs/Template,er,$(ER_CMDLINE)) + $(call Image/BuildKernel/Initramfs/Template,erlite,$(ERLITE_CMDLINE)) endef define Image/Build/sysupgrade mkdir -p $(KDIR)/sysupgrade-$(1)/ - echo "BOARD=er" > $(KDIR)/sysupgrade-$(1)/CONTROL + echo "BOARD=$(1)" > $(KDIR)/sysupgrade-$(1)/CONTROL $(CP) $(BIN_DIR)/$(IMG_PREFIX)-$(2)-vmlinux.64 $(KDIR)/sysupgrade-$(1)/kernel $(CP) $(KDIR)/root.$(3) $(KDIR)/sysupgrade-$(1)/root (cd $(KDIR); $(TAR) cvf \ - $(BIN_DIR)/$(IMG_PREFIX)-$(1)-sysupgrade.tar sysupgrade-$(1)) + $(BIN_DIR)/$(IMG_PREFIX)-$(1)-$(3)-sysupgrade.tar sysupgrade-$(1)) endef define Image/Build/ext4 @@ -47,6 +50,7 @@ endef define Image/Build/squashfs $(call prepare_generic_squashfs,$(KDIR)/root.squashfs) $(call Image/Build/sysupgrade,er,er,squashfs) + $(call Image/Build/sysupgrade,erlite,erlite,squashfs) endef define Image/Build