From patchwork Sun Sep 27 08:52:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= X-Patchwork-Id: 523132 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 2F6891401AD for ; Sun, 27 Sep 2015 18:51:32 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=A+0aC7wq; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id D8EF828BC4F; Sun, 27 Sep 2015 10:50:06 +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,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 42E5428BA8B for ; Sun, 27 Sep 2015 10:49:49 +0200 (CEST) X-policyd-weight: using cached result; rate: -8.5 Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Sun, 27 Sep 2015 10:49:48 +0200 (CEST) Received: by wicge5 with SMTP id ge5so68425582wic.0 for ; Sun, 27 Sep 2015 01:51:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=9UDoxH+EKuTikkCwtW1wNe0g0fk2ivfOJVDAbihFgjg=; b=A+0aC7wqzHZJRtVJMc68fdVzHElE4DtCtDewqnthY0RHK+W7XZyHd9yPuVX9l6ZXED z8ZMETkP44AW7Nv2l/c3Bm/N34l/5y7oRj8qNJITTlZKTsDTSLiVaY9k+67gKSPjTkmq oliUfvG+Ajo5qAM7RF0B2ZMticmkENoWj5otvYHvrn67TQWWRsZmbjjHuHlOfkCS6Oa3 qXz4llxawnyPpSGBb7p1HNgxDbi66o0dSVECSWFAoGFaDmQu6AKnKSV9YKjk4U9dbCFZ bvdAqPayoWG3G+SIel0bfCB4X5xD2mhx9ReVvLYSkgL7smhKDzdV16delFhL2NErHXZ+ gFhg== X-Received: by 10.181.27.138 with SMTP id jg10mr13105124wid.29.1443343867893; Sun, 27 Sep 2015 01:51:07 -0700 (PDT) Received: from skynet.lan (153.Red-88-6-111.staticIP.rima-tde.net. [88.6.111.153]) by smtp.gmail.com with ESMTPSA id he3sm12084358wjc.48.2015.09.27.01.51.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 27 Sep 2015 01:51:07 -0700 (PDT) From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= To: openwrt-devel@lists.openwrt.org, zajec5@gmail.com Date: Sun, 27 Sep 2015 10:52:32 +0200 Message-Id: <1443343952-20732-1-git-send-email-noltari@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1442142379-3824-1-git-send-email-noltari@gmail.com> References: <1442142379-3824-1-git-send-email-noltari@gmail.com> MIME-Version: 1.0 Subject: [OpenWrt-Devel] [PATCH v2] bcm53xx: allow building single device images 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: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" While keeping the default build profile, this allows users to generate only their device image instead of every bcm53xx supported device image This way we can also define the proper packages for each device (USB, WiFi...) Signed-off-by: Álvaro Fernández Rojas --- v2: add profile for Linksys EA6300 v1 target/linux/bcm53xx/Makefile | 4 +-- target/linux/bcm53xx/image/Makefile | 3 +- target/linux/bcm53xx/profiles/100-Generic.mk | 5 ++-- target/linux/bcm53xx/profiles/ASUS.mk | 43 ++++++++++++++++++++++++++ target/linux/bcm53xx/profiles/Buffalo.mk | 45 ++++++++++++++++++++++++++++ target/linux/bcm53xx/profiles/Linksys.mk | 16 ++++++++++ target/linux/bcm53xx/profiles/NETGEAR.mk | 45 ++++++++++++++++++++++++++++ target/linux/bcm53xx/profiles/SmartRG.mk | 16 ++++++++++ 8 files changed, 171 insertions(+), 6 deletions(-) create mode 100644 target/linux/bcm53xx/profiles/ASUS.mk create mode 100644 target/linux/bcm53xx/profiles/Buffalo.mk create mode 100644 target/linux/bcm53xx/profiles/Linksys.mk create mode 100644 target/linux/bcm53xx/profiles/NETGEAR.mk create mode 100644 target/linux/bcm53xx/profiles/SmartRG.mk diff --git a/target/linux/bcm53xx/Makefile b/target/linux/bcm53xx/Makefile index 68cfa63..6b916ce 100644 --- a/target/linux/bcm53xx/Makefile +++ b/target/linux/bcm53xx/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2013 OpenWrt.org +# Copyright (C) 2013-2015 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -23,7 +23,7 @@ endef KERNELNAME:=zImage dtbs -DEFAULT_PACKAGES += swconfig wpad-mini nvram otrx \ +DEFAULT_PACKAGES += swconfig nvram otrx \ kmod-gpio-button-hotplug \ kmod-leds-gpio kmod-ledtrig-default-on kmod-ledtrig-timer diff --git a/target/linux/bcm53xx/image/Makefile b/target/linux/bcm53xx/image/Makefile index c9987dd..1d8ade5 100644 --- a/target/linux/bcm53xx/image/Makefile +++ b/target/linux/bcm53xx/image/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2013 OpenWrt.org +# Copyright (C) 2013-2015 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -66,6 +66,7 @@ define Device/Default # .dtb files are prefixed by SoC type, e.g. bcm4708- which is not included in device/image names # extract the full dtb name based on the device info DT := $(patsubst %.dtb,%,$(notdir $(wildcard $(if $(IB),$(KDIR),$(DTS_DIR))/*-$(1).dtb))) + PROFILES = Generic $$(DEVICE_NAME) KERNEL := kernel-bin | append-dtb | lzma-d16 FILESYSTEMS := squashfs KERNEL_NAME := zImage diff --git a/target/linux/bcm53xx/profiles/100-Generic.mk b/target/linux/bcm53xx/profiles/100-Generic.mk index d7e9005..fb6527f 100644 --- a/target/linux/bcm53xx/profiles/100-Generic.mk +++ b/target/linux/bcm53xx/profiles/100-Generic.mk @@ -1,5 +1,5 @@ # -# Copyright (C) 2013 OpenWrt.org +# Copyright (C) 2013-2015 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -7,7 +7,7 @@ define Profile/Generic NAME:=Broadcom SoC, BCM43xx WiFi (b43, brcmfmac, default) - PACKAGES:=kmod-b43 kmod-brcmfmac + PACKAGES:=kmod-b43 kmod-brcmfmac wpad-mini endef define Profile/Generic/Description @@ -16,4 +16,3 @@ define Profile/Generic/Description endef $(eval $(call Profile,Generic)) - diff --git a/target/linux/bcm53xx/profiles/ASUS.mk b/target/linux/bcm53xx/profiles/ASUS.mk new file mode 100644 index 0000000..51aa412 --- /dev/null +++ b/target/linux/bcm53xx/profiles/ASUS.mk @@ -0,0 +1,43 @@ +# +# Copyright (C) 2015 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +define Profile/asus-rt-ac56u + NAME:=ASUS RT-AC56U + PACKAGES:=kmod-b43 wpad-mini \ + kmod-usb-ohci kmod-usb2 +endef +define Profile/asus-rt-ac56u/Description + Package set optimized for ASUS RT-AC56U. +endef +$(eval $(call Profile,asus-rt-ac56u)) + +define Profile/asus-rt-ac68u + NAME:=ASUS RT-AC68U + PACKAGES:=kmod-usb-ohci kmod-usb2 +endef +define Profile/asus-rt-ac68u/Description + Package set optimized for ASUS RT-AC68U. +endef +$(eval $(call Profile,asus-rt-ac68u)) + +define Profile/asus-rt-ac87u + NAME:=ASUS RT-AC87U + PACKAGES:=kmod-usb-ohci kmod-usb2 +endef +define Profile/asus-rt-ac87u/Description + Package set optimized for ASUS RT-AC87U. +endef +$(eval $(call Profile,asus-rt-ac87u)) + +define Profile/asus-rt-n18u + NAME:=ASUS RT-N18U + PACKAGES:=kmod-usb-ohci kmod-usb2 +endef +define Profile/asus-rt-n18u/Description + Package set optimized for ASUS RT-N18U. +endef +$(eval $(call Profile,asus-rt-n18u)) diff --git a/target/linux/bcm53xx/profiles/Buffalo.mk b/target/linux/bcm53xx/profiles/Buffalo.mk new file mode 100644 index 0000000..704eefd --- /dev/null +++ b/target/linux/bcm53xx/profiles/Buffalo.mk @@ -0,0 +1,45 @@ +# +# Copyright (C) 2015 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +define Profile/buffalo-wzr-600dhp2 + NAME:=Buffalo WZR-600DHP2 + PACKAGES:=kmod-b43 wpad-mini \ + kmod-usb-ohci kmod-usb2 +endef +define Profile/buffalo-wzr-600dhp2/Description + Package set optimized for Buffalo WZR-600DHP2. +endef +$(eval $(call Profile,buffalo-wzr-600dhp2)) + +define Profile/buffalo-wzr-900dhp + NAME:=Buffalo WZR-900DHP + PACKAGES:=kmod-b43 wpad-mini \ + kmod-usb-ohci kmod-usb2 +endef +define Profile/buffalo-wzr-900dhp/Description + Package set optimized for Buffalo WZR-900DHP. +endef +$(eval $(call Profile,buffalo-wzr-900dhp)) + +define Profile/buffalo-wzr-1750dhp + NAME:=Buffalo WZR-1750DHP + PACKAGES:=kmod-b43 wpad-mini \ + kmod-usb-ohci kmod-usb2 +endef +define Profile/buffalo-wzr-1750dhp/Description + Package set optimized for Buffalo WZR-1750DHP. +endef +$(eval $(call Profile,buffalo-wzr-1750dhp)) + +define Profile/buffalo-wxr-1900dhp + NAME:=Buffalo WXR-1900DHP + PACKAGES:=kmod-usb-ohci kmod-usb2 +endef +define Profile/buffalo-wxr-1900dhp/Description + Package set optimized for Buffalo WXR-1900DHP. +endef +$(eval $(call Profile,buffalo-wxr-1900dhp)) diff --git a/target/linux/bcm53xx/profiles/Linksys.mk b/target/linux/bcm53xx/profiles/Linksys.mk new file mode 100644 index 0000000..912cc0f --- /dev/null +++ b/target/linux/bcm53xx/profiles/Linksys.mk @@ -0,0 +1,16 @@ +# +# Copyright (C) 2015 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +define Profile/linksys-ea6300-v1 + NAME:=Linksys EA6300 v1 + PACKAGES:=kmod-b43 wpad-mini \ + kmod-usb-ohci kmod-usb2 +endef +define Profile/linksys-ea6300-v1/Description + Package set optimized for Linksys EA6300 v1. +endef +$(eval $(call Profile,linksys-ea6300-v1)) diff --git a/target/linux/bcm53xx/profiles/NETGEAR.mk b/target/linux/bcm53xx/profiles/NETGEAR.mk new file mode 100644 index 0000000..74edb3a --- /dev/null +++ b/target/linux/bcm53xx/profiles/NETGEAR.mk @@ -0,0 +1,45 @@ +# +# Copyright (C) 2015 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +define Profile/netgear-r6250 + NAME:=NETGEAR R6250 + PACKAGES:=kmod-b43 wpad-mini \ + kmod-usb-ohci kmod-usb2 +endef +define Profile/netgear-r6250/Description + Package set optimized for NETGEAR R6250. +endef +$(eval $(call Profile,netgear-r6250)) + +define Profile/netgear-r6300-v2 + NAME:=NETGEAR R6300 v2 + PACKAGES:=kmod-b43 wpad-mini \ + kmod-usb-ohci kmod-usb2 +endef +define Profile/netgear-r6300-v2/Description + Package set optimized for NETGEAR R6300 v2. +endef +$(eval $(call Profile,netgear-r6300-v2)) + +define Profile/netgear-r7000 + NAME:=NETGEAR R7000 + PACKAGES:=kmod-usb-ohci kmod-usb2 +endef +define Profile/netgear-r7000/Description + Package set optimized for NETGEAR R7000. +endef +$(eval $(call Profile,netgear-r7000)) + +define Profile/netgear-r8000 + NAME:=NETGEAR R8000 + PACKAGES:=kmod-brcmfmac wpad-mini \ + kmod-usb-ohci kmod-usb2 +endef +define Profile/netgear-r8000/Description + Package set optimized for NETGEAR R8000. +endef +$(eval $(call Profile,netgear-r8000)) diff --git a/target/linux/bcm53xx/profiles/SmartRG.mk b/target/linux/bcm53xx/profiles/SmartRG.mk new file mode 100644 index 0000000..2de26b2 --- /dev/null +++ b/target/linux/bcm53xx/profiles/SmartRG.mk @@ -0,0 +1,16 @@ +# +# Copyright (C) 2015 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +define Profile/smartrg-sr400ac + NAME:=SmartRG SR400ac + PACKAGES:=kmod-b43 wpad-mini \ + kmod-usb-ohci kmod-usb2 +endef +define Profile/smartrg-sr400ac/Description + Package set optimized for SmartRG SR400ac. +endef +$(eval $(call Profile,smartrg-sr400ac))