From patchwork Wed Oct 4 23:14:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandeep Sheriker X-Patchwork-Id: 821498 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133; helo=bombadil.infradead.org; envelope-from=lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="cytJ7y7t"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 3y6sGV5SHnz9t2M for ; Thu, 5 Oct 2017 10:16:18 +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: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:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=FDXVXKdIoQ010lSS7zTOQwC6ZbjxfPO+1hHWeym9hyQ=; b=cytJ7y7tBD8PXq+2FkdV6jDpqs Jjw20RZ7cw1xLnYmifVCBmQSt4tBoP1XH9VRWv434qnHI1qVUOlfZRSlM9yWWkaoj4HZH61WvY5wK yh9rYQDxaBODy2zKm46Vxs1JZXqxpxgEhFfen5g28IHY2am3xXbYKK34o14qRbXV1gQ9gCo9M/lPc LR3mQO08LdgE3UFO9iTJyikem/vyvV9CEuJ2j2s0CVMSgH1k2iDle+YdBA4umXtfWkKbe0c6jGvxD bJLW4vXAY6BsfmegtPq48HHv/6RaUeZBUt/lQ7G5FW4g7JFZ37g+gZzJ0OchbAr1bNI60iNVJlmd9 ivD0m2vQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dzste-00037h-Iq; Wed, 04 Oct 2017 23:16:10 +0000 Received: from esa2.microchip.iphmx.com ([68.232.149.84]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dzss2-00012O-1J for lede-dev@lists.infradead.org; Wed, 04 Oct 2017 23:14:31 +0000 X-IronPort-AV: E=Sophos;i="5.42,478,1500966000"; d="scan'208";a="7553449" Received: from exsmtp01.microchip.com (HELO email.microchip.com) ([198.175.253.37]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES128-SHA; 04 Oct 2017 16:13:54 -0700 Received: from sandeep-office.microchip.com (10.10.76.4) by CHN-SV-EXCH01.mchp-main.com (10.10.76.37) with Microsoft SMTP Server id 14.3.352.0; Wed, 4 Oct 2017 16:13:54 -0700 From: Sandeep Sheriker Mallikarjun To: Date: Wed, 4 Oct 2017 16:14:21 -0700 Message-ID: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171004_161430_243742_0060305D X-CRM114-Status: UNSURE ( 5.22 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [68.232.149.84 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Subject: [LEDE-DEV] [PATCH 1/2] uboot-at91: remove sama5 platform X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org configuring a legacy(i.e sam9x soc) device as a subtarget in menuconfig. The bootloader menu shows both legacy and sama5 u-boot targets and if user selects sama5 as uboot target for legacy devices. The build fails due to incorrect cpu flags. To avoid these build error removing sama5 platform from uboot-at91. Signed-off-by: Sandeep Sheriker Mallikarjun --- package/boot/uboot-at91/Makefile | 54 ++-------------------------------------- 1 file changed, 2 insertions(+), 52 deletions(-) diff --git a/package/boot/uboot-at91/Makefile b/package/boot/uboot-at91/Makefile index 8dc5e3e..6a806ff 100644 --- a/package/boot/uboot-at91/Makefile +++ b/package/boot/uboot-at91/Makefile @@ -17,71 +17,21 @@ include $(INCLUDE_DIR)/package.mk define U-Boot/Default BUILD_TARGET:=at91 + BUILD_SUBTARGET:=legacy UBOOT_IMAGE:=u-boot.bin boot.bin endef define U-Boot/at91sam9m10g45ek_nandflash NAME:=AT91SAM9M10G45-EK board (NandFlash) - BUILD_SUBTARGET:=legacy endef define U-Boot/at91sam9x5ek_nandflash NAME:=AT91SAM9X5-EK board (NandFlash) - BUILD_SUBTARGET:=legacy -endef - -define uboot/sama5d3_xplained_nandflash - TITLE:=U-Boot for the SAMA5D3 Xplained board (NandFlash) - BUILD_SUBTARGET:=sama5 - BUILD_DEVICES:=at91-sama5d3_xplained -endef - -define uboot/sama5d3_xplained_mmc - TITLE:=U-Boot for the SAMA5D3 Xplained board (SDcard) - BUILD_SUBTARGET:=sama5 - BUILD_DEVICES:=at91-sama5d3_xplained -endef - -define uboot/sama5d2_xplained_spiflash - TITLE:=U-Boot for the SAMA5D2 Xplained board (SPI Flash) - BUILD_SUBTARGET:=sama5 - BUILD_DEVICES:=at91-sama5d2_xplained -endef - -define uboot/sama5d2_xplained_mmc - TITLE:=U-Boot for the SAMA5D2 Xplained board (SDcard/EMMC) - BUILD_SUBTARGET:=sama5 - BUILD_DEVICES:=at91-sama5d2_xplained -endef - -define uboot/sama5d4_xplained_spiflash - TITLE:=U-Boot for the SAMA5D4 Xplained board (SPI Flash) - BUILD_SUBTARGET:=sama5 - BUILD_DEVICES:=at91-sama5d4_xplained -endef - -define uboot/sama5d4_xplained_mmc - TITLE:=U-Boot for the SAMA5D4 Xplained board (SDcard) - BUILD_SUBTARGET:=sama5 - BUILD_DEVICES:=at91-sama5d4_xplained -endef - -define uboot/sama5d4_xplained_nandflash - TITLE:=U-Boot for the SAMA5D4 Xplained board (NandFlash) - BUILD_SUBTARGET:=sama5 - BUILD_DEVICES:=at91-sama5d4_xplained endef UBOOT_TARGETS := \ at91sam9m10g45ek_nandflash \ - at91sam9x5ek_nandflash \ - sama5d3_xplained_nandflash \ - sama5d3_xplained_mmc \ - sama5d2_xplained_mmc \ - sama5d2_xplained_spiflash \ - sama5d4_xplained_mmc \ - sama5d4_xplained_spiflash \ - sama5d4_xplained_nandflash + at91sam9x5ek_nandflash define Build/Compile +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ From patchwork Wed Oct 4 23:14:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandeep Sheriker X-Patchwork-Id: 821496 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133; helo=bombadil.infradead.org; envelope-from=lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="oaiNEEhb"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 3y6sFT5HYdz9t2M for ; Thu, 5 Oct 2017 10:15:25 +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: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:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=ARZm3tifxZrQPSV59kSAavGwaak62ftv4FVO/exk8eI=; b=oaiNEEhb/AnEX9UhoqYfCB8keG 9fsFVsohBnH5sbZBoKnqKIOhXP4fbNh3xOdTIK6oOGqO7yCrDDe7qNTJQhgpgKJ+Nk9HYHlWmOuQB a99KveiQrCRhw1WoyiYr1OiUJc673X77xITD5OVmcNCDSAaz85USsyNVEn5NN2mcEPna1NAdI5Qgb lSx7QrUcGUwO93GiPSblm5SL6VerxyyPW5s8Lkc6IWwq+1yhYDV33PcAdObbggso12yV7EppQoO96 2NAIKgVQKTPSkefRv+irSuX14QIthpL9paJv9mjUOqtTtRmiItxRhK3Gs7crKXIuv8yWdhx7+dU0d OduX/sDA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dzssl-0001dj-89; Wed, 04 Oct 2017 23:15:15 +0000 Received: from esa2.microchip.iphmx.com ([68.232.149.84]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dzsrq-00010v-G0 for lede-dev@lists.infradead.org; Wed, 04 Oct 2017 23:14:20 +0000 X-IronPort-AV: E=Sophos;i="5.42,478,1500966000"; d="scan'208";a="7553450" Received: from exsmtp01.microchip.com (HELO email.microchip.com) ([198.175.253.37]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES128-SHA; 04 Oct 2017 16:13:54 -0700 Received: from sandeep-office.microchip.com (10.10.76.4) by CHN-SV-EXCH01.mchp-main.com (10.10.76.37) with Microsoft SMTP Server id 14.3.352.0; Wed, 4 Oct 2017 16:13:54 -0700 From: Sandeep Sheriker Mallikarjun To: Date: Wed, 4 Oct 2017 16:14:22 -0700 Message-ID: <87b261f63b0e127674365a45b1bc403864f18079.1507048132.git.sandeepsheriker.mallikarjun@microchip.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171004_161418_633751_241568FD X-CRM114-Status: UNSURE ( 8.39 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [68.232.149.84 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Subject: [LEDE-DEV] [PATCH 2/2] uboot-at91_sama5: Add New package uboot-at91_sama5 X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Added new package uboot-at91_sama5 to build uboot binaries for Microchip(Atmel AT91) sama5 socs. Signed-off-by: Sandeep Sheriker Mallikarjun --- package/boot/uboot-at91_sama5/Makefile | 82 ++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 package/boot/uboot-at91_sama5/Makefile diff --git a/package/boot/uboot-at91_sama5/Makefile b/package/boot/uboot-at91_sama5/Makefile new file mode 100644 index 0000000..6e63064 --- /dev/null +++ b/package/boot/uboot-at91_sama5/Makefile @@ -0,0 +1,82 @@ +# +# Copyright (C) 2016 Microchip Technology Inc. +# +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_VERSION:=2017.07 +PKG_RELEASE:=1 + +PKG_HASH:=5374bfdc8acb9a38c025371b1ff20f45e7533668e84e685d0df5d9e7c0e4feff + +include $(INCLUDE_DIR)/u-boot.mk +include $(INCLUDE_DIR)/package.mk + +define U-Boot/Default + BUILD_TARGET:=at91 + BUILD_SUBTARGET:=sama5 + UBOOT_IMAGE:=u-boot.bin boot.bin +endef + +define uboot/sama5d3_xplained_nandflash + TITLE:=U-Boot for the SAMA5D3 Xplained board (NandFlash) + BUILD_SUBTARGET:=sama5 + BUILD_DEVICES:=at91-sama5d3_xplained +endef + +define uboot/sama5d3_xplained_mmc + TITLE:=U-Boot for the SAMA5D3 Xplained board (SDcard) + BUILD_SUBTARGET:=sama5 + BUILD_DEVICES:=at91-sama5d3_xplained +endef + +define uboot/sama5d2_xplained_spiflash + TITLE:=U-Boot for the SAMA5D2 Xplained board (SPI Flash) + BUILD_SUBTARGET:=sama5 + BUILD_DEVICES:=at91-sama5d2_xplained +endef + +define uboot/sama5d2_xplained_mmc + TITLE:=U-Boot for the SAMA5D2 Xplained board (SDcard/EMMC) + BUILD_SUBTARGET:=sama5 + BUILD_DEVICES:=at91-sama5d2_xplained +endef + +define uboot/sama5d4_xplained_spiflash + TITLE:=U-Boot for the SAMA5D4 Xplained board (SPI Flash) + BUILD_SUBTARGET:=sama5 + BUILD_DEVICES:=at91-sama5d4_xplained +endef + +define uboot/sama5d4_xplained_mmc + TITLE:=U-Boot for the SAMA5D4 Xplained board (SDcard) + BUILD_SUBTARGET:=sama5 + BUILD_DEVICES:=at91-sama5d4_xplained +endef + +define uboot/sama5d4_xplained_nandflash + TITLE:=U-Boot for the SAMA5D4 Xplained board (NandFlash) + BUILD_SUBTARGET:=sama5 + BUILD_DEVICES:=at91-sama5d4_xplained +endef + +UBOOT_TARGETS := \ + sama5d3_xplained_nandflash \ + sama5d3_xplained_mmc \ + sama5d2_xplained_mmc \ + sama5d2_xplained_spiflash \ + sama5d4_xplained_mmc \ + sama5d4_xplained_spiflash \ + sama5d4_xplained_nandflash + +define Build/Compile + +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ + CROSS_COMPILE=$(TARGET_CROSS) \ + KCFLAGS="$(filter-out -fstack-protector, $(TARGET_CFLAGS))" +endef + +$(eval $(call BuildPackage/U-Boot))