All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 12/20] sunxi-boards: new package
Date: Tue, 28 May 2013 23:29:33 +0200	[thread overview]
Message-ID: <87sj1694jm.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <1369606110-8088-13-git-send-email-thomas.petazzoni@free-electrons.com> (Thomas Petazzoni's message of "Mon, 27 May 2013 00:08:22 +0200")

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 Thomas> From: Carlo Caione <carlo.caione@gmail.com>
 Thomas> Signed-off-by: Carlo Caione <carlo.caione@gmail.com>
 Thomas> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
 Thomas> ---
 Thomas>  package/Config.in                    |    1 +
 Thomas>  package/sunxi-boards/Config.in       |   19 +++++++++++++++++++
 Thomas>  package/sunxi-boards/sunxi-boards.mk |   17 +++++++++++++++++
 Thomas>  3 files changed, 37 insertions(+)
 Thomas>  create mode 100644 package/sunxi-boards/Config.in
 Thomas>  create mode 100644 package/sunxi-boards/sunxi-boards.mk

 Thomas> diff --git a/package/Config.in b/package/Config.in
 Thomas> index 1bd9309..50683ff 100644
 Thomas> --- a/package/Config.in
 Thomas> +++ b/package/Config.in
 Thomas> @@ -218,6 +218,7 @@ source "package/b43-firmware/Config.in"
 Thomas>  source "package/firmware-imx/Config.in"
 Thomas>  source "package/linux-firmware/Config.in"
 Thomas>  source "package/rpi-firmware/Config.in"
 Thomas> +source "package/sunxi-boards/Config.in"
 Thomas>  source "package/ux500-firmware/Config.in"
 Thomas>  source "package/zd1211-firmware/Config.in"
 Thomas>  endmenu
 Thomas> diff --git a/package/sunxi-boards/Config.in b/package/sunxi-boards/Config.in
 Thomas> new file mode 100644
 Thomas> index 0000000..27ee8fc
 Thomas> --- /dev/null
 Thomas> +++ b/package/sunxi-boards/Config.in
 Thomas> @@ -0,0 +1,19 @@
 Thomas> +config BR2_PACKAGE_SUNXI_BOARDS
 Thomas> +	bool "sunxi script.bin board file"
 Thomas> +	select BR2_PACKAGE_HOST_SUNXI_TOOLS

This should depend on BR2_arm like sunxi-tools.

 Thomas> +	help
 Thomas> +	  Sunxi-boards requires a compiled .fex files for hardware description,
 Thomas> +	  used by kernel during boot for hardware initialization. This package
 Thomas> +	  is specific for linux-sunxi kernel and it is useless for mainline
 Thomas> +	  kernel versions.
 Thomas> +
 Thomas> +	  https://github.com/linux-sunxi/sunxi-boards
 Thomas> +
 Thomas> +if BR2_PACKAGE_SUNXI_BOARDS
 Thomas> +config BR2_PACKAGE_SUNXI_BOARDS_BOARD_NAME
 Thomas> +	string "Board name"
 Thomas> +	help
 Thomas> +	  This field defines the name of the board for which the .bin
 Thomas> +	  files should be generated. See inside sys_config/a10 directory in
 Thomas> +	  sunxi-boards source code to see the list of valid board names.
 Thomas> +endif

It's imho silly to restrict this to the a10 variants, so I've changed
this to be a BR2_PACKAGE_SUNXI_FEX_FILE option, which is the exact
filename (including .fex extension) relative to the sys_config/
directory - E.G.:

BR2_PACKAGE_SUNXI_FEX_FILE="a10/mele_a1000.fex"


 Thomas> diff --git a/package/sunxi-boards/sunxi-boards.mk b/package/sunxi-boards/sunxi-boards.mk
 Thomas> new file mode 100644
 Thomas> index 0000000..1f52110
 Thomas> --- /dev/null
 Thomas> +++ b/package/sunxi-boards/sunxi-boards.mk
 Thomas> @@ -0,0 +1,17 @@
 Thomas> +#############################################################
 Thomas> +#
 Thomas> +# sunxi-boards
 Thomas> +#
 Thomas> +#############################################################
 Thomas> +
 Thomas> +SUNXI_BOARDS_VERSION = 88d663db44f65b73ef65c4148a28c6fa3665d2b6
 Thomas> +SUNXI_BOARDS_SITE = https://github.com/linux-sunxi/sunxi-boards/tarball/master
 Thomas> +SUNXI_BOARDS_DEPENDENCIES = host-sunxi-tools
 Thomas> +SUNXI_BOARDS_INSTALL_IMAGES = YES
 Thomas> +SUNXI_BOARDS_INSTALL_TARGET = NO
 Thomas> +
 Thomas> +define SUNXI_BOARDS_INSTALL_IMAGES_CMDS
 Thomas> +	$(FEX2BIN) $(@D)/sys_config/a10/$(BR2_PACKAGE_SUNXI_BOARDS_BOARD_NAME).fex $(BINARIES_DIR)/script.bin

Long line, so I've wrapped this. We also normally qstrip the text
strings so I've added that as well.

For the other text fields (like barebox/u-boot/linux defconfig name) we
do an early check to ensure the value isn't the empty string and error
out with a sensible error message, so I've added that as well.

Committed to next with these issues fixed, thanks.

-- 
Bye, Peter Korsgaard

  reply	other threads:[~2013-05-28 21:29 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-26 22:08 [Buildroot] [PATCH 00/20] Patches from the Patchwork Day Thomas Petazzoni
2013-05-26 22:08 ` [Buildroot] [PATCH 01/20] numactl: new package Thomas Petazzoni
2013-05-27  8:42   ` Peter Korsgaard
2013-05-26 22:08 ` [Buildroot] [PATCH 02/20] dropbear: factorize the 'depends on BR2_PACKAGE_DROPBEAR' Thomas Petazzoni
2013-05-27 11:11   ` Peter Korsgaard
2013-05-26 22:08 ` [Buildroot] [PATCH 03/20] elf2flt: fix build when zlib is not installed on the host Thomas Petazzoni
2013-05-27 11:13   ` Peter Korsgaard
2013-05-26 22:08 ` [Buildroot] [PATCH 04/20] gcc: fix gcc 4.8 build when thread support is disabled Thomas Petazzoni
2013-05-27 11:36   ` Peter Korsgaard
2013-05-27 21:55   ` Peter Korsgaard
2013-05-26 22:08 ` [Buildroot] [PATCH 05/20] toolchain: blackfin: Remove Blackfin toolchain 2011R1 release Thomas Petazzoni
2013-05-27 11:36   ` Peter Korsgaard
2013-05-26 22:08 ` [Buildroot] [PATCH 06/20] poco: Add upstream patch to add support for aarch64 Thomas Petazzoni
2013-06-09 20:14   ` Peter Korsgaard
2013-05-26 22:08 ` [Buildroot] [PATCH 07/20] flex: needs M4 at runtime Thomas Petazzoni
2013-05-27 21:55   ` Peter Korsgaard
2013-05-26 22:08 ` [Buildroot] [PATCH 08/20] Remove useless CVS related files Thomas Petazzoni
2013-05-27 21:59   ` Peter Korsgaard
2013-05-26 22:08 ` [Buildroot] [PATCH 09/20] toolchain-external: add support for 'Sourcery CodeBench ARM 2013.05' Thomas Petazzoni
2013-05-27 22:03   ` Peter Korsgaard
2013-05-26 22:08 ` [Buildroot] [PATCH 10/20] toolchain-external: remove support for 'Sourcery CodeBench ARM 2011.03' Thomas Petazzoni
2013-05-27 22:03   ` Peter Korsgaard
2013-05-26 22:08 ` [Buildroot] [PATCH 11/20] sunxi-tools: new host/target package Thomas Petazzoni
2013-05-27 22:09   ` Peter Korsgaard
2013-05-26 22:08 ` [Buildroot] [PATCH 12/20] sunxi-boards: new package Thomas Petazzoni
2013-05-28 21:29   ` Peter Korsgaard [this message]
2013-05-26 22:08 ` [Buildroot] [PATCH 13/20] cubieboard: add support Thomas Petazzoni
2013-05-29 10:54   ` Peter Korsgaard
2013-05-26 22:08 ` [Buildroot] [PATCH 14/20] freescale-imx: new package directory Thomas Petazzoni
2013-05-29 12:24   ` Peter Korsgaard
2013-05-26 22:08 ` [Buildroot] [PATCH 15/20] imx-lib: move to the freescale-imx directory Thomas Petazzoni
2013-05-29 12:28   ` Peter Korsgaard
2013-05-26 22:08 ` [Buildroot] [PATCH 16/20] firmware-imx: " Thomas Petazzoni
2013-05-29 12:31   ` Peter Korsgaard
2013-05-26 22:08 ` [Buildroot] [PATCH 17/20] freescale-imx: bump to 1.1.0 Thomas Petazzoni
2013-05-29 13:19   ` Peter Korsgaard
2013-05-26 22:08 ` [Buildroot] [PATCH 18/20] gpu-viv-bin-mx6q: new package Thomas Petazzoni
2013-05-29 13:39   ` Peter Korsgaard
2013-05-29 13:48     ` Thomas Petazzoni
2013-05-29 13:54       ` Peter Korsgaard
2013-06-01 18:14       ` Arnout Vandecappelle
2013-05-26 22:08 ` [Buildroot] [PATCH 19/20] network-manager: use a <pkg>_VERSION_MAJOR variable Thomas Petazzoni
2013-05-29 13:45   ` Peter Korsgaard
2013-05-26 22:08 ` [Buildroot] [PATCH 20/20] network-manager: bump to 0.9.8.0 Thomas Petazzoni
2013-05-29 14:09   ` Peter Korsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sj1694jm.fsf@dell.be.48ers.dk \
    --to=jacmet@uclibc.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.