From patchwork Mon May 13 05:52:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlo Caione X-Patchwork-Id: 243286 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 5726B2C009E for ; Mon, 13 May 2013 15:48:56 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id CE1FA3174D; Mon, 13 May 2013 05:48:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L1eV-9C08b7U; Mon, 13 May 2013 05:48:49 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id CEFCF31765; Mon, 13 May 2013 05:48:46 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 727C88F7AA for ; Mon, 13 May 2013 05:48:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0BEFA8A8DC for ; Mon, 13 May 2013 05:48:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YReuyk7ZXTz2 for ; Mon, 13 May 2013 05:48:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ea0-f180.google.com (mail-ea0-f180.google.com [209.85.215.180]) by whitealder.osuosl.org (Postfix) with ESMTPS id C7F038A9CD for ; Mon, 13 May 2013 05:48:41 +0000 (UTC) Received: by mail-ea0-f180.google.com with SMTP id g10so2059411eak.11 for ; Sun, 12 May 2013 22:48:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=PV+rF3J7liL9C8mvqj1u+3HA/w7u+OYojpUIADJ8AUk=; b=ZbPE4W9cSo2aTznHFE6zSAhE7hCFEgFsSUlPU4gq7isu847BtuawxGcs0inh97b7fy pvx7E/xjzuuaFCKyL2AvMNYUPL6MyTraqDszSUDXVGkru8+M0+rRwF/TzHKaFmGr70iL OD6EdDVYBpZ0c1VOwmA67H/ZGCsHThbowrSGCgmP/bkAjeQYtuAX6jyInp6qcPiNYbZy /Nn5UhN664/Bcu6jhX4p4ck68Lxgy/I+rCLbeOo7wK6THk8G/i3RD4A4WqCm8wkkloUb Oio0cYidLgyMhUFokeL1Z05tkI0OpCBRu1hX0rSynv65ZqxUQHUdFgtto+GtC3FTWgrR BBPA== X-Received: by 10.14.221.67 with SMTP id q43mr28430952eep.1.1368424120124; Sun, 12 May 2013 22:48:40 -0700 (PDT) Received: from asus.fastwebnet.it (2-238-57-164.ip242.fastwebnet.it. [2.238.57.164]) by mx.google.com with ESMTPSA id n7sm20611985eeo.0.2013.05.12.22.48.38 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 12 May 2013 22:48:39 -0700 (PDT) From: Carlo Caione To: buildroot@busybox.net Date: Mon, 13 May 2013 07:52:27 +0200 Message-Id: <1368424348-9853-2-git-send-email-carlo.caione@gmail.com> X-Mailer: git-send-email 1.8.2.3 In-Reply-To: <1368424348-9853-1-git-send-email-carlo.caione@gmail.com> References: <1368424348-9853-1-git-send-email-carlo.caione@gmail.com> Subject: [Buildroot] [PATCH 2/3] sunxi-boards: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Carlo Caione --- Changelog: - Improved package description - Config.in rewritten - Makefile rewritten --- package/Config.in | 1 + package/sunxi-boards/Config.in | 19 +++++++++++++++++++ package/sunxi-boards/sunxi-boards.mk | 17 +++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 package/sunxi-boards/Config.in create mode 100644 package/sunxi-boards/sunxi-boards.mk diff --git a/package/Config.in b/package/Config.in index 26440a5..7868c32 100644 --- a/package/Config.in +++ b/package/Config.in @@ -218,6 +218,7 @@ source "package/b43-firmware/Config.in" source "package/firmware-imx/Config.in" source "package/linux-firmware/Config.in" source "package/rpi-firmware/Config.in" +source "package/sunxi-boards/Config.in" source "package/ux500-firmware/Config.in" source "package/zd1211-firmware/Config.in" endmenu diff --git a/package/sunxi-boards/Config.in b/package/sunxi-boards/Config.in new file mode 100644 index 0000000..27ee8fc --- /dev/null +++ b/package/sunxi-boards/Config.in @@ -0,0 +1,19 @@ +config BR2_PACKAGE_SUNXI_BOARDS + bool "sunxi script.bin board file" + select BR2_PACKAGE_HOST_SUNXI_TOOLS + help + Sunxi-boards requires a compiled .fex files for hardware description, + used by kernel during boot for hardware initialization. This package + is specific for linux-sunxi kernel and it is useless for mainline + kernel versions. + + https://github.com/linux-sunxi/sunxi-boards + +if BR2_PACKAGE_SUNXI_BOARDS +config BR2_PACKAGE_SUNXI_BOARDS_BOARD_NAME + string "Board name" + help + This field defines the name of the board for which the .bin + files should be generated. See inside sys_config/a10 directory in + sunxi-boards source code to see the list of valid board names. +endif diff --git a/package/sunxi-boards/sunxi-boards.mk b/package/sunxi-boards/sunxi-boards.mk new file mode 100644 index 0000000..1f52110 --- /dev/null +++ b/package/sunxi-boards/sunxi-boards.mk @@ -0,0 +1,17 @@ +############################################################# +# +# sunxi-boards +# +############################################################# + +SUNXI_BOARDS_VERSION = 88d663db44f65b73ef65c4148a28c6fa3665d2b6 +SUNXI_BOARDS_SITE = https://github.com/linux-sunxi/sunxi-boards/tarball/master +SUNXI_BOARDS_DEPENDENCIES = host-sunxi-tools +SUNXI_BOARDS_INSTALL_IMAGES = YES +SUNXI_BOARDS_INSTALL_TARGET = NO + +define SUNXI_BOARDS_INSTALL_IMAGES_CMDS + $(FEX2BIN) $(@D)/sys_config/a10/$(BR2_PACKAGE_SUNXI_BOARDS_BOARD_NAME).fex $(BINARIES_DIR)/script.bin +endef + +$(eval $(generic-package))