* [Buildroot] [PATCH] New host package: sunxi-tools
@ 2013-02-06 13:45 Floris Bos
2013-02-06 13:56 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Floris Bos @ 2013-02-06 13:45 UTC (permalink / raw)
To: buildroot
Tools for Allwinner A10 (aka sun4i) and A13 (aka sun5i) based devices.
This includes fexc which can be used to compile .fex board definition files to
the binary script.bin format required by the linux-sunxi kernel.
http://linux-sunxi.org/Sunxi-tools
Signed-off-by: Floris Bos <bos@je-eigen-domein.nl>
---
package/Config.in.host | 1 +
package/sunxi-tools/Config.in.host | 9 +++++++++
package/sunxi-tools/sunxi-tools.mk | 28 ++++++++++++++++++++++++++++
3 files changed, 38 insertions(+)
create mode 100644 package/sunxi-tools/Config.in.host
create mode 100644 package/sunxi-tools/sunxi-tools.mk
diff --git a/package/Config.in.host b/package/Config.in.host
index 79050f2..b2b9fbd 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -5,6 +5,7 @@ source "package/lpc3250loader/Config.in.host"
source "package/omap-u-boot-utils/Config.in.host"
source "package/openocd/Config.in.host"
source "package/sam-ba/Config.in.host"
+source "package/sunxi-tools/Config.in.host"
source "package/uboot-tools/Config.in.host"
endmenu
diff --git a/package/sunxi-tools/Config.in.host b/package/sunxi-tools/Config.in.host
new file mode 100644
index 0000000..0208adb
--- /dev/null
+++ b/package/sunxi-tools/Config.in.host
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_HOST_SUNXI_TOOLS
+ bool "host sunxi-tools"
+ help
+ Tools for Allwinner A10 (aka sun4i) and A13 (aka sun5i) based devices.
+ This includes fexc which can be used to compile .fex board definition files to
+ the binary script.bin format required by the linux-sunxi kernel.
+
+ http://linux-sunxi.org/Sunxi-tools
+
diff --git a/package/sunxi-tools/sunxi-tools.mk b/package/sunxi-tools/sunxi-tools.mk
new file mode 100644
index 0000000..6146d5d
--- /dev/null
+++ b/package/sunxi-tools/sunxi-tools.mk
@@ -0,0 +1,28 @@
+#############################################################
+#
+# sunxi-tools
+#
+#############################################################
+
+SUNXI_TOOLS_VERSION = 3a94e721dd8d1e13d0b25da0a83463891e8e9ee0
+SUNXI_TOOLS_SITE = git://github.com/linux-sunxi/sunxi-tools.git
+SUNXI_TOOLS_LICENSE = GPLv2+
+SUNXI_TOOLS_LICENSE_FILES = COPYING
+HOST_SUNXI_TOOLS_DEPENDENCIES = host-libusb
+
+define HOST_SUNXI_TOOLS_BUILD_CMDS
+ $(HOST_MAKE_ENV) $(MAKE) CFLAGS="$(HOST_CFLAGS) -std=c99 \
+ -D_POSIX_C_SOURCE=200112L -Iinclude/" LDFLAGS="$(HOST_LDFLAGS)" -C $(@D)
+endef
+
+define HOST_SUNXI_TOOLS_INSTALL_CMDS
+ $(INSTALL) -D -m 0755 $(@D)/fexc $(HOST_DIR)/usr/bin/fexc
+ $(INSTALL) -D -m 0755 $(@D)/bin2fex $(HOST_DIR)/usr/bin/bin2fex
+ $(INSTALL) -D -m 0755 $(@D)/fex2bin $(HOST_DIR)/usr/bin/fex2bin
+ $(INSTALL) -D -m 0755 $(@D)/bootinfo $(HOST_DIR)/usr/bin/bootinfo
+ $(INSTALL) -D -m 0755 $(@D)/fel $(HOST_DIR)/usr/bin/fel
+ $(INSTALL) -D -m 0755 $(@D)/pio $(HOST_DIR)/usr/bin/pio
+ $(INSTALL) -D -m 0755 $(@D)/nand-part $(HOST_DIR)/usr/bin/nand-part
+endef
+
+$(eval $(host-generic-package))
--
1.7.10.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] New host package: sunxi-tools
2013-02-06 13:45 [Buildroot] [PATCH] New host package: sunxi-tools Floris Bos
@ 2013-02-06 13:56 ` Thomas Petazzoni
2013-02-06 14:25 ` Floris Bos
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2013-02-06 13:56 UTC (permalink / raw)
To: buildroot
Dear Floris Bos,
On Wed, 6 Feb 2013 14:45:08 +0100, Floris Bos wrote:
> Tools for Allwinner A10 (aka sun4i) and A13 (aka sun5i) based devices.
> This includes fexc which can be used to compile .fex board definition files to
> the binary script.bin format required by the linux-sunxi kernel.
>
> http://linux-sunxi.org/Sunxi-tools
>
> Signed-off-by: Floris Bos <bos@je-eigen-domein.nl>
I think it should be noted somewhere that those tools are needed for the
non-mainline Linux kernel for Allwinner SoCs, which has chosen to use
completely non-standard mechanisms for board definition files and
pinmuxing description. The mainline Linux effort does not require those
specific tools.
This should probably at least clearly be mentioned in the help text of
the package option.
Thanks !
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] New host package: sunxi-tools
2013-02-06 13:56 ` Thomas Petazzoni
@ 2013-02-06 14:25 ` Floris Bos
2013-02-11 15:30 ` Maxime Ripard
0 siblings, 1 reply; 4+ messages in thread
From: Floris Bos @ 2013-02-06 14:25 UTC (permalink / raw)
To: buildroot
On 02/06/2013 02:56 PM, Thomas Petazzoni wrote:
> I think it should be noted somewhere that those tools are needed for
> the non-mainline Linux kernel for Allwinner SoCs, which has chosen to
> use completely non-standard mechanisms for board definition files and
> pinmuxing description.
The description already mentions it is for the linux-sunxi kernel.
Could add the word "non-mainline" though, to avoid confusion.
> The mainline Linux effort does not require those specific tools.
Yes, but while I applaud the mainline effort, it should be noted that
lack of MMC/NAND/USB/framebuffer support in the mainline kernel makes it
not useful to the average user yet at this stage.
Yours sincerely,
Floris Bos
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] New host package: sunxi-tools
2013-02-06 14:25 ` Floris Bos
@ 2013-02-11 15:30 ` Maxime Ripard
0 siblings, 0 replies; 4+ messages in thread
From: Maxime Ripard @ 2013-02-11 15:30 UTC (permalink / raw)
To: buildroot
Hi,
Le 06/02/2013 15:25, Floris Bos a ?crit :
> On 02/06/2013 02:56 PM, Thomas Petazzoni wrote:
>> I think it should be noted somewhere that those tools are needed for
>> the non-mainline Linux kernel for Allwinner SoCs, which has chosen to
>> use completely non-standard mechanisms for board definition files and
>> pinmuxing description.
>
> The description already mentions it is for the linux-sunxi kernel.
> Could add the word "non-mainline" though, to avoid confusion.
Well, linux-sunxi isn't very explicit for someone that is not very used
to the Allwinner platform. There's no way he'll get that it means "the
fork of allwinner's linux source code maintained on github by a separate
community".
Maxime
--
Maxime Ripard, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-02-11 15:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-06 13:45 [Buildroot] [PATCH] New host package: sunxi-tools Floris Bos
2013-02-06 13:56 ` Thomas Petazzoni
2013-02-06 14:25 ` Floris Bos
2013-02-11 15:30 ` Maxime Ripard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox