Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/3] sunxi-boards: new package
Date: Sun, 24 Mar 2013 11:02:58 +0100	[thread overview]
Message-ID: <20130324110258.346e8fd6@skate> (raw)
In-Reply-To: <1363289498-20993-2-git-send-email-carlo.caione@gmail.com>

Dear Carlo Caione,

On Thu, 14 Mar 2013 20:31:37 +0100, Carlo Caione wrote:

> Sunxi-boards requires a compiled .fex files for hardware description, used by
> kernel during boot for hardware initialization.

Please copy this text into the package help text. And mention that it
applies only to the linux-sunxi kernel and not the mainline kernel.

> Signed-off-by: Carlo Caione <carlo.caione@gmail.com>
> ---
>  package/Config.in                    |   1 +
>  package/sunxi-boards/Config.in       | 170 +++++++++++++++++++++++++++++++++++
>  package/sunxi-boards/sunxi-boards.mk |  17 ++++
>  3 files changed, 188 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 4bb8c77..72db358 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -214,6 +214,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..7d5db53
> --- /dev/null
> +++ b/package/sunxi-boards/Config.in
> @@ -0,0 +1,170 @@
> +config BR2_PACKAGE_SUNXI_BOARDS
> +	bool "sunxi script.bin board file"
> +	select BR2_PACKAGE_HOST_SUNXI_TOOLS
> +	help
> +	  Compiled '.fex' file used by the sun4i kernel
> +
> +	  https://github.com/linux-sunxi/sunxi-boards
> +
> +choice
> +	prompt "sunxi board"
> +	default BR2_PACKAGE_SUNXI_BOARDS_CUBIEBOARD
> +	depends on BR2_PACKAGE_SUNXI_BOARDS
> +	help
> +	  Select the sunxi board
> +
> +config BR2_PACKAGE_SUNXI_BOARDS_CUBIEBOARD
> +	bool "Cubieboard"
> +	help
> +	  Cubieboard
> +
> +config BR2_PACKAGE_SUNXI_BOARDS_A10_MID_1GB
> +	bool "A10_mid_1GB"
> +	help
> +	  A10_mid_1GB
> +
> +config BR2_PACKAGE_SUNXI_BOARDS_BA10_TV_BOX
> +	bool "A10_tv_box"
> +	help
> +	  A10_tv_box
> +
> +config BR2_PACKAGE_SUNXI_BOARDS_COBY_MID7042
> +	bool "coby_mid7042"
> +	help
> +	  coby_mid7042
> +
> +config BR2_PACKAGE_SUNXI_BOARDS_COBY_MID8042
> +	bool "coby_mid8042"
> +	help
> +	  coby_mid8042
> +
> +config BR2_PACKAGE_SUNXI_BOARDS_COBY_MID9742
> +	bool "coby_mid9742"
> +	help
> +	  coby_mid9742
> +
> +config BR2_PACKAGE_SUNXI_BOARDS_CUBIEBOARD_512
> +	bool "Cubieboard_512"
> +	help
> +	  Cubieboard_512
> +
> +config BR2_PACKAGE_SUNXI_BOARDS_GOOSEBERRY_A721
> +	bool "Gooseberry_a721"
> +	help
> +	  Gooseberry_a721
> +
> +config BR2_PACKAGE_SUNXI_BOARDS_H6
> +	bool "h6"
> +	help
> +	  h6
> +
> +config BR2_PACKAGE_SUNXI_BOARDS_HACKBERRY
> +	bool "Hackberry"
> +	help
> +	  Hackberry
> +
> +config BR2_PACKAGE_SUNXI_BOARDS_HYUNDAI_A7HD
> +	bool "hyundai_a7hd"
> +	help
> +	  hyundai_a7hd
> +
> +config BR2_PACKAGE_SUNXI_BOARDS_INET97F_II
> +	bool "inet97f-ii"
> +	help
> +	  inet97f-ii
> +
> +config BR2_PACKAGE_SUNXI_BOARDS_MELE_A1000
> +	bool "mele_a1000"
> +	help
> +	  mele_a1000
> +
> +config BR2_PACKAGE_SUNXI_BOARDS_MELE_A1000G
> +	bool "mele_a1000G"
> +	help
> +	  mele_a1000g
> +
> +config BR2_PACKAGE_SUNXI_BOARDS_MINI_X_1GB
> +	bool "mini-x-1gb"
> +	help
> +	  mini-x-1gb
> +
> +config BR2_PACKAGE_SUNXI_BOARDS_MINI_X
> +	bool "mini-x"
> +	help
> +	  mini-x
> +
> +config BR2_PACKAGE_SUNXI_BOARDS_MK802_1GB
> +	bool "mk802-1gb"
> +	help
> +	  mk802-1gb
> +
> +config BR2_PACKAGE_SUNXI_BOARDS_MK802
> +	bool "mk802"
> +	help
> +	  mk802
> +
> +config BR2_PACKAGE_SUNXI_BOARDS_MK802II
> +	bool "mk802ii"
> +	help
> +	  mk802ii
> +
> +config BR2_PACKAGE_SUNXI_BOARDS_POV_PROTAB2_IPS_3G
> +	bool "pov_protab2_ips_3g"
> +	help
> +	  pov_protab2_ips_3g
> +
> +config BR2_PACKAGE_SUNXI_BOARDS_POV_PROTAB2_IPS9
> +	bool "pov_protab2_ips9"
> +	help
> +	  pov_protab2_ips9
> +
> +config BR2_PACKAGE_SUNXI_BOARDS_UHOST_U1A
> +	bool "uhost_u1a"
> +	help
> +	  uhost_u1a
> +
> +config BR2_PACKAGE_SUNXI_BOARDS_ZATAB
> +	bool "zatab"
> +	help
> +	  zatab
> +
> +endchoice
> +
> +config BR2_PACKAGE_SUNXI_BOARDS_FILE
> +	string
> +	default "cubieboard"		if BR2_PACKAGE_SUNXI_BOARDS_CUBIEBOARD
> +	default "a10_mid_1gb"		if BR2_PACKAGE_SUNXI_BOARDS_A10_MID_1GB
> +	default "ba10_tv_box"		if BR2_PACKAGE_SUNXI_BOARDS_BA10_TV_BOX
> +	default "coby_mid7042"		if BR2_PACKAGE_SUNXI_BOARDS_COBY_MID7042
> +	default "coby_mid8042"		if BR2_PACKAGE_SUNXI_BOARDS_COBY_MID8042
> +	default "coby_mid9742"		if BR2_PACKAGE_SUNXI_BOARDS_COBY_MID9742
> +	default "cubieboard_512"	if BR2_PACKAGE_SUNXI_BOARDS_CUBIEBOARD_512
> +	default "gooseberry_a721"	if BR2_PACKAGE_SUNXI_BOARDS_GOOSEBERRY_A721
> +	default "h6"			if BR2_PACKAGE_SUNXI_BOARDS_H6
> +	default "hackberry"		if BR2_PACKAGE_SUNXI_BOARDS_HACKBERRY
> +	default "hyundai_a7hd"		if BR2_PACKAGE_SUNXI_BOARDS_HYUNDAI_A7HD
> +	default "inet97f-ii"		if BR2_PACKAGE_SUNXI_BOARDS_INET97F_II
> +	default "mele_a1000"		if BR2_PACKAGE_SUNXI_BOARDS_MELE_A1000
> +	default "mele_a1000g"		if BR2_PACKAGE_SUNXI_BOARDS_MELE_A1000G
> +	default "mini-x-1gb"		if BR2_PACKAGE_SUNXI_BOARDS_MINI_X_1GB
> +	default "mini-x"		if BR2_PACKAGE_SUNXI_BOARDS_MINI_X
> +	default "mk802-1gb"		if BR2_PACKAGE_SUNXI_BOARDS_MK802_1GB
> +	default "mk802"			if BR2_PACKAGE_SUNXI_BOARDS_MK802
> +	default "mk802ii"		if BR2_PACKAGE_SUNXI_BOARDS_MK802II
> +	default "pov_protab2_ips_3g"	if BR2_PACKAGE_SUNXI_BOARDS_POV_PROTAB2_IPS_3g
> +	default "pov_protab2_ips9"	if BR2_PACKAGE_SUNXI_BOARDS_POV_PROTAB2_IPS9
> +	default "uhost_u1a"		if BR2_PACKAGE_SUNXI_BOARDS_UHOST_U1A
> +	default "zatab"			if BR2_PACKAGE_SUNXI_BOARDS_ZATAB

Just like we do for the kernel or U-Boot, I think listing all possible
configurations here is not really realistic. What about a single:

config BR2_PACKAGE_SUNXI_BOARDS_BOARD_NAME
	string "Board name"
	help
	  This field defines the name of the board for which the .fex
	  files should be generated. See ... to see the list of valid
	  board names.

> +
> +
> +
> +
> +
> +
> +
> +
> +
> +	
> +
> +
> +

There shouldn't be all those empty new lines here.

> diff --git a/package/sunxi-boards/sunxi-boards.mk b/package/sunxi-boards/sunxi-boards.mk
> new file mode 100644
> index 0000000..dbbc063
> --- /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
> +
> +FEX2BIN = $(HOST_DIR)/usr/bin/fex2bin

This one should be defined by sunxi-tools (i.e patch 1/3).

> +define SUNXI_BOARDS_INSTALL_TARGET_CMDS
> +	$(FEX2BIN) $(@D)/sys_config/a10/$(BR2_PACKAGE_SUNXI_BOARDS_FILE).fex $(BINARIES_DIR)/script.bin
> +endef

This should be:

define SUNXI_BOARDS_INSTALL_IMAGES_CMDS

endef

and don't forget to SUNXI_BOARDS_INSTALL_IMAGES = YES and
SUNXI_BOARDS_INSTALL_TARGET = NO.

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  reply	other threads:[~2013-03-24 10:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-14 19:31 [Buildroot] [PATCH 1/3] sunxi-tools: new host/taget package Carlo Caione
2013-03-14 19:31 ` [Buildroot] [PATCH 2/3] sunxi-boards: new package Carlo Caione
2013-03-24 10:02   ` Thomas Petazzoni [this message]
2013-03-14 19:31 ` [Buildroot] [PATCH 3/3] cubieboard: add support Carlo Caione
2013-03-24 10:14   ` Thomas Petazzoni
2013-03-24  9:58 ` [Buildroot] [PATCH 1/3] sunxi-tools: new host/taget package Thomas Petazzoni
2013-05-03 18:59 ` Thomas Petazzoni
  -- strict thread matches above, loose matches on Subject: below --
2013-05-13  5:52 [Buildroot] [PATCH 1/3] sunxi-tools: new host/target package Carlo Caione
2013-05-13  5:52 ` [Buildroot] [PATCH 2/3] sunxi-boards: new package Carlo Caione

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=20130324110258.346e8fd6@skate \
    --to=thomas.petazzoni@free-electrons.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox