From patchwork Sun Sep 27 08:49:43 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: 523131 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 4CA421401F6 for ; Sun, 27 Sep 2015 18:48:44 +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=pfDPReGy; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 6584528B735; Sun, 27 Sep 2015 10:47:09 +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 BA27328B413 for ; Sun, 27 Sep 2015 10:47:00 +0200 (CEST) X-policyd-weight: using cached result; rate: -8.5 Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Sun, 27 Sep 2015 10:47:00 +0200 (CEST) Received: by wicge5 with SMTP id ge5so68383221wic.0 for ; Sun, 27 Sep 2015 01:48:19 -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=+Au8aK/wGgW/j9EsTv6XcJ+idqFm+wSBICk9QB6B5pQ=; b=pfDPReGyEFUzg89UlRVregSVxHqryp7Z8DtxuhwwOlNFCO1vyqwTWp5zEnNICYHlTu +j/EzbKk7CRKr1c6eHobjGdvEZPKvm+W6UtDNa8aQmVw4AvI+fHxZRMEj4cIYbAoB6Ru l/++/U6XEbFf2ZVWH3evfLUXdWP8tTr9dODUPmJIHZO4HXJr23Y3Dt0jDAK/qpF9CIlu RkTEnUoE0RRV50RZEfmIkfmO4aNSjqSwKFHmG2nH29I6XDzMDAUipQ4a8LFqCXokxFZ1 lsRLZ/l2aneTB+21D7WSupXKEbzmPf0MTnbgUEZ9EGpmN6ySXhlyH1g7NrqUssDa2Pb9 f2HA== X-Received: by 10.180.102.169 with SMTP id fp9mr13107994wib.29.1443343699346; Sun, 27 Sep 2015 01:48:19 -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 mx19sm12050723wic.0.2015.09.27.01.48.17 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 27 Sep 2015 01:48:17 -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:49:43 +0200 Message-Id: <1443343783-20622-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/NETGEAR.mk | 45 ++++++++++++++++++++++++++++ target/linux/bcm53xx/profiles/SmartRG.mk | 16 ++++++++++ 7 files changed, 155 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/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/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))