* [Buildroot] [PATCH 1/3] sunxi-tools: new host package
@ 2013-03-07 22:39 Carlo Caione
2013-03-07 22:39 ` [Buildroot] [PATCH 2/3] cubieboard: config file Carlo Caione
` (3 more replies)
0 siblings, 4 replies; 10+ messages in thread
From: Carlo Caione @ 2013-03-07 22:39 UTC (permalink / raw)
To: buildroot
Tools to help hacking Allwinner A10 (aka sun4i) based devices
Signed-off-by: Carlo Caione <carlo.caione@gmail.com>
---
package/Config.in.host | 1 +
package/sunxi-tools/Config.in.host | 7 +++++++
package/sunxi-tools/sunxi-tools.mk | 20 ++++++++++++++++++++
3 files changed, 28 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..71e0418
--- /dev/null
+++ b/package/sunxi-tools/Config.in.host
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_HOST_SUNXI_TOOLS
+ bool "host sunxi-tools"
+ help
+ Tools to help hacking Allwinner A10 (aka sun4i) based devices and
+ possibly it's successors
+
+ https://github.com/linux-sunxi/sunxi-tools
diff --git a/package/sunxi-tools/sunxi-tools.mk b/package/sunxi-tools/sunxi-tools.mk
new file mode 100644
index 0000000..60acff5
--- /dev/null
+++ b/package/sunxi-tools/sunxi-tools.mk
@@ -0,0 +1,20 @@
+#############################################################
+#
+# sunxi-tools
+#
+#############################################################
+
+SUNXI_TOOLS_VERSION = master
+SUNXI_TOOLS_SITE = git://github.com/linux-sunxi/sunxi-tools.git
+
+define HOST_SUNXI_TOOLS_BUILD_CMDS
+ $(MAKE) -C $(@D)
+endef
+
+define HOST_SUNXI_TOOLS_INSTALL_CMDS
+ for f in fexc bin2fex fex2bin bootinfo fel pio nand-part ; do \
+ install -m 755 -D $(@D)/$$f $(HOST_DIR)/usr/bin/$$f ; \
+ done
+endef
+
+$(eval $(host-generic-package))
--
1.8.1.5
^ permalink raw reply related [flat|nested] 10+ messages in thread* [Buildroot] [PATCH 2/3] cubieboard: config file
2013-03-07 22:39 [Buildroot] [PATCH 1/3] sunxi-tools: new host package Carlo Caione
@ 2013-03-07 22:39 ` Carlo Caione
2013-03-07 22:39 ` [Buildroot] [PATCH 3/3] cubieboard: scripts Carlo Caione
` (2 subsequent siblings)
3 siblings, 0 replies; 10+ messages in thread
From: Carlo Caione @ 2013-03-07 22:39 UTC (permalink / raw)
To: buildroot
Configuration file for cubieboard (http://cubieboard.org/)
Signed-off-by: Carlo Caione <carlo.caione@gmail.com>
---
configs/cubieboard_defconfig | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
create mode 100644 configs/cubieboard_defconfig
diff --git a/configs/cubieboard_defconfig b/configs/cubieboard_defconfig
new file mode 100644
index 0000000..42d8eb3
--- /dev/null
+++ b/configs/cubieboard_defconfig
@@ -0,0 +1,33 @@
+# Architecture
+BR2_arm=y
+BR2_cortex_a8=y
+
+# System configuration
+BR2_TARGET_GENERIC_HOSTNAME="sun4i"
+BR2_TARGET_GENERIC_ISSUE="Welcome to use sun4i"
+BR2_TARGET_GENERIC_GETTY=y
+BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/cubieboard/post-build.sh"
+
+# Additional tools
+BR2_PACKAGE_HOST_SUNXI_TOOLS=y
+BR2_PACKAGE_HOST_UBOOT_TOOLS=y
+
+# Kernel
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_GIT=y
+BR2_LINUX_KERNEL_CUSTOM_GIT_REPO_URL="https://github.com/linux-sunxi/linux-sunxi.git"
+BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION="sunxi-3.4"
+BR2_LINUX_KERNEL_VERSION="sunxi-3.4"
+BR2_LINUX_KERNEL_DEFCONFIG="sun4i"
+
+# Bootloaders
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BOARDNAME="cubieboard"
+BR2_TARGET_UBOOT_CUSTOM_GIT=y
+BR2_TARGET_UBOOT_VERSION="sunxi"
+BR2_TARGET_UBOOT_CUSTOM_GIT_REPO_URL="https://github.com/linux-sunxi/u-boot-sunxi.git"
+BR2_TARGET_UBOOT_CUSTOM_GIT_VERSION="sunxi"
+BR2_TARGET_UBOOT_FORMAT_BIN=y
+BR2_TARGET_UBOOT_SPL=y
+BR2_TARGET_UBOOT_SPL_NAME="spl/sunxi-spl.bin"
--
1.8.1.5
^ permalink raw reply related [flat|nested] 10+ messages in thread* [Buildroot] [PATCH 3/3] cubieboard: scripts
2013-03-07 22:39 [Buildroot] [PATCH 1/3] sunxi-tools: new host package Carlo Caione
2013-03-07 22:39 ` [Buildroot] [PATCH 2/3] cubieboard: config file Carlo Caione
@ 2013-03-07 22:39 ` Carlo Caione
2013-03-08 9:37 ` [Buildroot] [PATCH 1/3] sunxi-tools: new host package Samuel Martin
2013-03-08 12:18 ` Floris Bos
3 siblings, 0 replies; 10+ messages in thread
From: Carlo Caione @ 2013-03-07 22:39 UTC (permalink / raw)
To: buildroot
post-build script for cubieboard and an additional script to correctly
create the sd-card
Signed-off-by: Carlo Caione <carlo.caione@gmail.com>
---
board/cubieboard/boot.cmd | 4 ++
board/cubieboard/mkCubieCard.sh | 110 ++++++++++++++++++++++++++++++++++++++++
board/cubieboard/post-build.sh | 40 +++++++++++++++
3 files changed, 154 insertions(+)
create mode 100644 board/cubieboard/boot.cmd
create mode 100755 board/cubieboard/mkCubieCard.sh
create mode 100755 board/cubieboard/post-build.sh
diff --git a/board/cubieboard/boot.cmd b/board/cubieboard/boot.cmd
new file mode 100644
index 0000000..849ed00
--- /dev/null
+++ b/board/cubieboard/boot.cmd
@@ -0,0 +1,4 @@
+setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait panic=10 ${extra}
+fatload mmc 0 0x43000000 script.bin
+fatload mmc 0 0x48000000 uImage
+bootm 0x48000000
diff --git a/board/cubieboard/mkCubieCard.sh b/board/cubieboard/mkCubieCard.sh
new file mode 100755
index 0000000..7a5a16f
--- /dev/null
+++ b/board/cubieboard/mkCubieCard.sh
@@ -0,0 +1,110 @@
+#! /bin/sh
+# mkCubieCard.sh v0.1:
+# 2013, Carlo Caione <carlo.caione@gmail.com>
+# heavely based on :
+# mkA10card.sh v0.1
+# 2012, Jason Plum <jplum@archlinuxarm.org>
+# loosely based on :
+# mkcard.sh v0.5
+# (c) Copyright 2009 Graeme Gregory <dp@xora.org.uk>
+# Licensed under terms of GPLv2
+#
+# Parts of the procudure base on the work of Denys Dmytriyenko
+# http://wiki.omap.com/index.php/MMC_Boot_Format
+
+IMAGES_DIR=../../output/images
+SPL_IMG=$IMAGES_DIR/sunxi-spl.bin
+UBOOT_IMG=$IMAGES_DIR/u-boot.bin
+UIMAGE=$IMAGES_DIR/uImage
+BIN_BOARD_FILE=$IMAGES_DIR/script.bin
+ROOTFS=$IMAGES_DIR/rootfs.tar
+
+export LC_ALL=C
+
+if [ $# -ne 1 ]; then
+ echo "Usage: $0 <drive>"
+ exit 1;
+fi
+
+if [ ! -f $SPL_IMG ] ||
+ [ ! -f $UBOOT_IMG ] ||
+ [ ! -f $UIMAGE ] ||
+ [ ! -f $BIN_BOARD_FILE ] ||
+ [ ! -f $ROOTFS ]; then
+ echo "File(s) missing."
+ exit 1
+fi
+
+DRIVE=$1
+P1=`mktemp -d`
+P2=`mktemp -d`
+
+dd if=/dev/zero of=$DRIVE bs=1M count=3
+
+SIZE=`fdisk -l $DRIVE | grep Disk | grep bytes | awk '{print $5}'`
+
+echo DISK SIZE - $SIZE bytes
+
+
+# ~2048, 16MB, FAT, bootable
+# ~rest of drive, Ext4
+{
+echo 32,512,0x0C,*
+echo 544,,,-
+} | sfdisk -D $DRIVE
+
+sleep 1
+
+if [ -b ${DRIVE}1 ]; then
+ D1=${DRIVE}1
+ umount ${DRIVE}1
+ mkfs.vfat -n "boot" ${DRIVE}1
+else
+ if [ -b ${DRIVE}p1 ]; then
+ D1=${DRIVE}p1
+ umount ${DRIVE}p1
+ mkfs.vfat -n "boot" ${DRIVE}p1
+ else
+ echo "Cant find boot partition in /dev"
+ exit 1
+ fi
+fi
+
+
+if [ -b ${DRIVE}2 ]; then
+ D2=${DRIVE}2
+ umount ${DRIVE}2
+ mkfs.ext4 -L "Cubie" ${DRIVE}2
+else
+ if [ -b ${DRIVE}p2 ]; then
+ D2=${DRIVE}p2
+ umount ${DRIVE}p2
+ mkfs.ext4 -L "Cubie" ${DRIVE}p2
+ else
+ echo "Cant find rootfs partition in /dev"
+ exit 1
+ fi
+fi
+
+mount $D1 $P1
+mount $D2 $P2
+
+# write uImage
+cp $UIMAGE $P1
+# write board file
+cp $BIN_BOARD_FILE $P1
+# write rootfs
+tar -C $P2 -xvf $ROOTFS
+
+sync
+
+umount $D1
+umount $D2
+
+rm -fr $P1
+rm -fr $P2
+
+# write SPL
+dd if=$SPL_IMG of=$DRIVE bs=1024 seek=8
+# write mele u-boot
+dd if=$UBOOT_IMG of=$DRIVE bs=1024 seek=32
diff --git a/board/cubieboard/post-build.sh b/board/cubieboard/post-build.sh
new file mode 100755
index 0000000..c59e430
--- /dev/null
+++ b/board/cubieboard/post-build.sh
@@ -0,0 +1,40 @@
+#!/bin/sh
+# post-build.sh for CubieBoard
+# 2013, Carlo Caione <carlo.caione@gmail.com>
+
+TARGET_DIR=$1
+IMAGES_DIR=$1/../images
+BOARD_DIR="$(dirname $0)"
+HOST_DIR=$1/../host/usr/bin
+TMP_DIR=`mktemp -d`
+
+FEX2BIN=$HOST_DIR/fex2bin
+FEX_BOARD_FILE=$TMP_DIR/sys_config/a10/cubieboard.fex
+BIN_BOARD_FILE=$IMAGES_DIR/script.bin
+
+MKIMAGE=$HOST_DIR/mkimage
+BOOT_CMD=$BOARD_DIR/boot.cmd
+BOOT_CMD_H=$IMAGES_DIR/boot.scr
+
+SD_IMAGE=$IMAGES_DIR/sd.img
+
+GIT_SUNXI_BOARD=git://github.com/linux-sunxi/sunxi-boards.git
+
+# Temp dir
+mkdir $TMP_DIR
+
+# Building script.bin
+if [ -e $FEX2BIN ];
+then
+ git clone $GIT_SUNXI_BOARD $TMP_DIR
+ $FEX2BIN $FEX_BOARD_FILE $BIN_BOARD_FILE
+fi
+
+# U-Boot script
+if [ -e $MKIMAGE -a -e $BOOT_CMD ];
+then
+ $MKIMAGE -C none -A arm -T script -d $BOOT_CMD $BOOT_CMD_H
+fi
+
+# Clean-up
+rm -fr $TMP_DIR
--
1.8.1.5
^ permalink raw reply related [flat|nested] 10+ messages in thread* [Buildroot] [PATCH 1/3] sunxi-tools: new host package
2013-03-07 22:39 [Buildroot] [PATCH 1/3] sunxi-tools: new host package Carlo Caione
2013-03-07 22:39 ` [Buildroot] [PATCH 2/3] cubieboard: config file Carlo Caione
2013-03-07 22:39 ` [Buildroot] [PATCH 3/3] cubieboard: scripts Carlo Caione
@ 2013-03-08 9:37 ` Samuel Martin
2013-03-08 10:07 ` Carlo Caione
2013-03-08 12:18 ` Floris Bos
3 siblings, 1 reply; 10+ messages in thread
From: Samuel Martin @ 2013-03-08 9:37 UTC (permalink / raw)
To: buildroot
Hi Carlo,
2013/3/7 Carlo Caione <carlo.caione@gmail.com>:
> Tools to help hacking Allwinner A10 (aka sun4i) based devices
>
> Signed-off-by: Carlo Caione <carlo.caione@gmail.com>
> ---
> package/Config.in.host | 1 +
> package/sunxi-tools/Config.in.host | 7 +++++++
> package/sunxi-tools/sunxi-tools.mk | 20 ++++++++++++++++++++
> 3 files changed, 28 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..71e0418
> --- /dev/null
> +++ b/package/sunxi-tools/Config.in.host
> @@ -0,0 +1,7 @@
> +config BR2_PACKAGE_HOST_SUNXI_TOOLS
> + bool "host sunxi-tools"
> + help
> + Tools to help hacking Allwinner A10 (aka sun4i) based devices and
Looks like the indentation is wrong (spaces instead of 1 tab + 2 spaces).
> + possibly it's successors
> +
> + https://github.com/linux-sunxi/sunxi-tools
> diff --git a/package/sunxi-tools/sunxi-tools.mk b/package/sunxi-tools/sunxi-tools.mk
> new file mode 100644
> index 0000000..60acff5
> --- /dev/null
> +++ b/package/sunxi-tools/sunxi-tools.mk
> @@ -0,0 +1,20 @@
> +#############################################################
> +#
> +# sunxi-tools
> +#
> +#############################################################
> +
> +SUNXI_TOOLS_VERSION = master
In Buildroot, we usually use commit sha1 instead of branch name;
otherwise it makes hard to spot what change in a package may have break a build.
> +SUNXI_TOOLS_SITE = git://github.com/linux-sunxi/sunxi-tools.git
BTW, with packages hosted on github, it is possible to just download
the tarball of the source at a given revision,
see: http://buildroot.org/downloads/manual/manual.html#github-download-url
> +
> +define HOST_SUNXI_TOOLS_BUILD_CMDS
> + $(MAKE) -C $(@D)
> +endef
> +
> +define HOST_SUNXI_TOOLS_INSTALL_CMDS
> + for f in fexc bin2fex fex2bin bootinfo fel pio nand-part ; do \
> + install -m 755 -D $(@D)/$$f $(HOST_DIR)/usr/bin/$$f ; \
> + done
> +endef
> +
> +$(eval $(host-generic-package))
> --
> 1.8.1.5
>
Regards,
--
Samuel
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] [PATCH 1/3] sunxi-tools: new host package
2013-03-08 9:37 ` [Buildroot] [PATCH 1/3] sunxi-tools: new host package Samuel Martin
@ 2013-03-08 10:07 ` Carlo Caione
0 siblings, 0 replies; 10+ messages in thread
From: Carlo Caione @ 2013-03-08 10:07 UTC (permalink / raw)
To: buildroot
On Fri, Mar 8, 2013 at 10:37 AM, Samuel Martin <s.martin49@gmail.com> wrote:
> Hi Carlo,
[cut]
>> +config BR2_PACKAGE_HOST_SUNXI_TOOLS
>> + bool "host sunxi-tools"
>> + help
>> + Tools to help hacking Allwinner A10 (aka sun4i) based devices and
> Looks like the indentation is wrong (spaces instead of 1 tab + 2 spaces).
Uhm ... I'll check it out ...
>> + possibly it's successors
>> +
>> + https://github.com/linux-sunxi/sunxi-tools
>> diff --git a/package/sunxi-tools/sunxi-tools.mk b/package/sunxi-tools/sunxi-tools.mk
>> new file mode 100644
>> index 0000000..60acff5
>> --- /dev/null
>> +++ b/package/sunxi-tools/sunxi-tools.mk
>> @@ -0,0 +1,20 @@
>> +#############################################################
>> +#
>> +# sunxi-tools
>> +#
>> +#############################################################
>> +
>> +SUNXI_TOOLS_VERSION = master
>
> In Buildroot, we usually use commit sha1 instead of branch name;
> otherwise it makes hard to spot what change in a package may have break a build.
You are definitely right.
>> +SUNXI_TOOLS_SITE = git://github.com/linux-sunxi/sunxi-tools.git
>
> BTW, with packages hosted on github, it is possible to just download
> the tarball of the source at a given revision,
> see: http://buildroot.org/downloads/manual/manual.html#github-download-url
Ups ... It seems like I skipped that part.
Thank you for the suggestions ... I will prepare a second submission.
--
Carlo
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] [PATCH 1/3] sunxi-tools: new host package
2013-03-07 22:39 [Buildroot] [PATCH 1/3] sunxi-tools: new host package Carlo Caione
` (2 preceding siblings ...)
2013-03-08 9:37 ` [Buildroot] [PATCH 1/3] sunxi-tools: new host package Samuel Martin
@ 2013-03-08 12:18 ` Floris Bos
2013-03-08 20:39 ` Carlo Caione
3 siblings, 1 reply; 10+ messages in thread
From: Floris Bos @ 2013-03-08 12:18 UTC (permalink / raw)
To: buildroot
On 03/07/2013 11:39 PM, Carlo Caione wrote:
> Tools to help hacking Allwinner A10 (aka sun4i) based devices
Submitted a patch for the same package earlier:
http://patchwork.ozlabs.org/patch/218616/
> +SUNXI_TOOLS_VERSION = master
> +SUNXI_TOOLS_SITE = git://github.com/linux-sunxi/sunxi-tools.git
> +
> +define HOST_SUNXI_TOOLS_BUILD_CMDS
> + $(MAKE) -C $(@D)
> +endef
Note that sunxi-tools (at least fel) has a dependency on libusb.
Your package is assuming that is always present on the host system.
Yours sincerely,
Floris Bos
^ permalink raw reply [flat|nested] 10+ messages in thread* [Buildroot] [PATCH 1/3] sunxi-tools: new host package
2013-03-08 12:18 ` Floris Bos
@ 2013-03-08 20:39 ` Carlo Caione
2013-03-10 14:07 ` Thomas Petazzoni
0 siblings, 1 reply; 10+ messages in thread
From: Carlo Caione @ 2013-03-08 20:39 UTC (permalink / raw)
To: buildroot
On Fri, Mar 8, 2013 at 1:18 PM, Floris Bos <bos@je-eigen-domein.nl> wrote:
> On 03/07/2013 11:39 PM, Carlo Caione wrote:
>>
>> Tools to help hacking Allwinner A10 (aka sun4i) based devices
>
>
> Submitted a patch for the same package earlier:
> http://patchwork.ozlabs.org/patch/218616/
Ups, I didn't see it. Sorry for the overlapping.
I'm going to use your package :)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] [PATCH 1/3] sunxi-tools: new host package
2013-03-08 20:39 ` Carlo Caione
@ 2013-03-10 14:07 ` Thomas Petazzoni
0 siblings, 0 replies; 10+ messages in thread
From: Thomas Petazzoni @ 2013-03-10 14:07 UTC (permalink / raw)
To: buildroot
Dear Carlo Caione,
On Fri, 8 Mar 2013 21:39:32 +0100, Carlo Caione wrote:
> Ups, I didn't see it. Sorry for the overlapping.
> I'm going to use your package :)
Yes, but it would be good if you could take Floris patch into your
patch series, and resend it in the next versions of your patch set.
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] 10+ messages in thread
* [Buildroot] [PATCH 1/3] sunxi-tools: new host package
@ 2013-03-08 6:22 Carlo Caione
2013-03-08 8:29 ` Carlo Caione
0 siblings, 1 reply; 10+ messages in thread
From: Carlo Caione @ 2013-03-08 6:22 UTC (permalink / raw)
To: buildroot
Tools to help hacking Allwinner A10 (aka sun4i) based devices
Signed-off-by: Carlo Caione <carlo.caione@gmail.com>
---
package/Config.in.host | 1 +
package/sunxi-tools/Config.in.host | 7 +++++++
package/sunxi-tools/sunxi-tools.mk | 20 ++++++++++++++++++++
3 files changed, 28 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..71e0418
--- /dev/null
+++ b/package/sunxi-tools/Config.in.host
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_HOST_SUNXI_TOOLS
+ bool "host sunxi-tools"
+ help
+ Tools to help hacking Allwinner A10 (aka sun4i) based devices and
+ possibly it's successors
+
+ https://github.com/linux-sunxi/sunxi-tools
diff --git a/package/sunxi-tools/sunxi-tools.mk b/package/sunxi-tools/sunxi-tools.mk
new file mode 100644
index 0000000..60acff5
--- /dev/null
+++ b/package/sunxi-tools/sunxi-tools.mk
@@ -0,0 +1,20 @@
+#############################################################
+#
+# sunxi-tools
+#
+#############################################################
+
+SUNXI_TOOLS_VERSION = master
+SUNXI_TOOLS_SITE = git://github.com/linux-sunxi/sunxi-tools.git
+
+define HOST_SUNXI_TOOLS_BUILD_CMDS
+ $(MAKE) -C $(@D)
+endef
+
+define HOST_SUNXI_TOOLS_INSTALL_CMDS
+ for f in fexc bin2fex fex2bin bootinfo fel pio nand-part ; do \
+ install -m 755 -D $(@D)/$$f $(HOST_DIR)/usr/bin/$$f ; \
+ done
+endef
+
+$(eval $(host-generic-package))
--
1.8.1.5
^ permalink raw reply related [flat|nested] 10+ messages in thread
end of thread, other threads:[~2013-03-10 14:07 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-07 22:39 [Buildroot] [PATCH 1/3] sunxi-tools: new host package Carlo Caione
2013-03-07 22:39 ` [Buildroot] [PATCH 2/3] cubieboard: config file Carlo Caione
2013-03-07 22:39 ` [Buildroot] [PATCH 3/3] cubieboard: scripts Carlo Caione
2013-03-08 9:37 ` [Buildroot] [PATCH 1/3] sunxi-tools: new host package Samuel Martin
2013-03-08 10:07 ` Carlo Caione
2013-03-08 12:18 ` Floris Bos
2013-03-08 20:39 ` Carlo Caione
2013-03-10 14:07 ` Thomas Petazzoni
-- strict thread matches above, loose matches on Subject: below --
2013-03-08 6:22 Carlo Caione
2013-03-08 8:29 ` Carlo Caione
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox