diff options
author | 2012-05-18 17:36:48 +0900 | |
---|---|---|
committer | 2012-05-18 17:36:48 +0900 | |
commit | fb26a5c2df5e1fde31491ebeff69112712008353 (patch) | |
tree | 2f8414516404877c9df8e29df0c2b2536ab2bd5c /dev-embedded | |
download | android-fb26a5c2df5e1fde31491ebeff69112712008353.tar.gz android-fb26a5c2df5e1fde31491ebeff69112712008353.tar.bz2 android-fb26a5c2df5e1fde31491ebeff69112712008353.zip |
initial commit
Diffstat (limited to 'dev-embedded')
7 files changed, 354 insertions, 0 deletions
diff --git a/dev-embedded/u-boot-tools/ChangeLog b/dev-embedded/u-boot-tools/ChangeLog new file mode 100644 index 0000000..5593651 --- /dev/null +++ b/dev-embedded/u-boot-tools/ChangeLog @@ -0,0 +1,105 @@ +# ChangeLog for dev-embedded/u-boot-tools +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/u-boot-tools/ChangeLog,v 1.20 2011/10/14 22:29:35 vapier Exp $ + +*u-boot-tools-2011.09 (14 Oct 2011) + + 14 Oct 2011; Mike Frysinger <vapier@gentoo.org> + +files/2011.09/0001-Build-timestamp_autogenerated.h-without-config.patch, + +files/2011.09/0002-Safer-timestamp_autogenerated.h-generation.patch, + +files/2011.09/0003-ublimage-NAND-block-size-isn-t-set-at-build-time.patch, + +u-boot-tools-2011.09.ebuild: + Version bump. + + 14 Oct 2011; Mike Frysinger <vapier@gentoo.org> u-boot-tools-2011.06.ebuild: + Stabilize for all. + +*u-boot-tools-2011.06 (21 Aug 2011) + + 21 Aug 2011; Tim Harder <radhermit@gentoo.org> +u-boot-tools-2011.06.ebuild: + Version bump + +*u-boot-tools-2010.12 (14 Mar 2011) + + 14 Mar 2011; Tim Harder <radhermit@gentoo.org> -u-boot-tools-2009.03.ebuild, + -u-boot-tools-2009.11.1.ebuild, +u-boot-tools-2010.12.ebuild: + Version bump (bug #355669 by Jacob Galbreath) and remove old. Update to EAPI + 4 and remove unnecessary compile setup and die usage. + + 07 Mar 2011; Raúl Porcel <armin76@gentoo.org> u-boot-tools-2010.06.ebuild: + x86stable wrt #355671 + + 06 Mar 2011; Michael Weber <xmw@gentoo.org> u-boot-tools-2010.06.ebuild: + arm stable (bug 355671) + + 21 Feb 2011; Markos Chandras <hwoarang@gentoo.org> + u-boot-tools-2010.06.ebuild: + Stable on amd64 wrt bug #355671 + +*u-boot-tools-2010.06 (15 Aug 2010) + + 15 Aug 2010; Mike Frysinger <vapier@gentoo.org> +u-boot-tools-2010.06.ebuild: + Version bump #319647 by Jesse Adelman. + +*u-boot-tools-2009.11.1 (05 Jun 2010) + + 05 Jun 2010; Raúl Porcel <armin76@gentoo.org> + +u-boot-tools-2009.11.1.ebuild: + Version bump + +*u-boot-tools-2009.08 (04 Sep 2009) + + 04 Sep 2009; Mike Frysinger <vapier@gentoo.org> + +u-boot-tools-2009.08.ebuild: + Version bump. + +*u-boot-tools-2009.08_rc3 (26 Aug 2009) + + 26 Aug 2009; Raúl Porcel <armin76@gentoo.org> + +u-boot-tools-2009.08_rc3.ebuild: + Version bump + +*u-boot-tools-2009.06 (19 Jul 2009) + + 19 Jul 2009; Mike Frysinger <vapier@gentoo.org> + +u-boot-tools-2009.06.ebuild: + Version bump. + + 07 May 2009; Raúl Porcel <armin76@gentoo.org> + u-boot-tools-2009.03.ebuild: + amd64/arm/x86 stable + +*u-boot-tools-2009.03 (29 Mar 2009) + + 29 Mar 2009; Raúl Porcel <armin76@gentoo.org> + +u-boot-tools-2009.03.ebuild: + Version bump + +*u-boot-tools-2009.01 (16 Mar 2009) + + 16 Mar 2009; Raúl Porcel <armin76@gentoo.org> + +u-boot-tools-2009.01.ebuild: + Version bump wrt #258414 + + 25 Nov 2008; Raúl Porcel <armin76@gentoo.org> + u-boot-tools-2008.10.ebuild: + arm stable + + 26 Oct 2008; Markus Meier <maekke@gentoo.org> u-boot-tools-1.3.1.ebuild: + amd64/x86 stable, bug #242518 + +*u-boot-tools-2008.10 (26 Oct 2008) + + 26 Oct 2008; Mike Frysinger <vapier@gentoo.org> + +u-boot-tools-2008.10.ebuild: + Version bump. + + 12 May 2008; <solar@gentoo.org> u-boot-tools-1.3.1.ebuild: + - keyworded ~arm per request. Builds native but fails at cross-compiles. + TODO: Fix CROSS_COMPILE= logic to allow the variable to be passed so it gets + the right CTARGET-CC + +*u-boot-tools-1.3.1 (24 Dec 2007) + + 24 Dec 2007; Mike Frysinger <vapier@gentoo.org> +u-boot-tools-1.3.1.ebuild: + Initial import. Ebuild by me. diff --git a/dev-embedded/u-boot-tools/Manifest b/dev-embedded/u-boot-tools/Manifest new file mode 100644 index 0000000..0a84963 --- /dev/null +++ b/dev-embedded/u-boot-tools/Manifest @@ -0,0 +1,7 @@ +AUX 2011.09/0001-Build-timestamp_autogenerated.h-without-config.patch 2988 RMD160 88742bf92ebd9286033f93338564c0a53bbee8d8 SHA1 8e6ffb9944b2c550efe04b43d336363c7bc5d2ad SHA256 c115ca451fd71b0e660321c11828cf703e26ff96563666aa6f0c5a49d7fdad33 +AUX 2011.09/0002-Safer-timestamp_autogenerated.h-generation.patch 1211 RMD160 4f216364912bf6b4ce497bdbd0ff461ad1c1ed3b SHA1 78f7160cd070faf31f189720c7d4b833cd25681b SHA256 63c1770b41b4fba383d1ac78530e54b7e44a7dbd351d83fdad9036aa588b4bd3 +AUX 2011.09/0003-ublimage-NAND-block-size-isn-t-set-at-build-time.patch 1933 RMD160 38f39a49afa683b3e7c656152bf278a5cd746589 SHA1 fdd31de13952c4eb35040f723235eb5de622f30a SHA256 a1f1dd216604b0b6cc1983bf269589fbf2117962713d0bc7b31f60d8c21729f6 +DIST u-boot-2011.09.tar.bz2 8430168 RMD160 30a56bae6615b1e70c928e0f93a0676d1ee98a1d SHA1 9cd450c74f7c572df3b28701e641b03b42393d10 SHA256 6223d0141d2451dde6a9bfb8abbbdbc3696e1c3d289744d1918296561306ab4b +EBUILD u-boot-tools-2011.09.ebuild 1005 RMD160 2dc151d1169a4168d4bee2082b70afd759e9c804 SHA1 8cbcb04ffd911745405926df145fd1a0d40441f1 SHA256 5e2b13a72e941fb804d7d4c8c7e0f13962de92a7ab65e89f61c85e13aab6c193 +MISC ChangeLog 3277 RMD160 756eb2cb67b5b30a631054c4b788f1aab829c5ec SHA1 fdd396f43677f52a2b24ac5558ef9dbccdb2a31c SHA256 282b266009f1f947a339a807d69fb520b259c8a3c1120dd7255c4f210279dcb3 +MISC metadata.xml 165 RMD160 3965c22a153ed350bcbd52de07c08ad47dd03cd7 SHA1 54b9da7fdc6d8376c990288c72938be9855ef8b6 SHA256 fb7ede94a0633f77d601e3e81580eac1624a3bca14401a49d94082579507ba0a diff --git a/dev-embedded/u-boot-tools/files/2011.09/0001-Build-timestamp_autogenerated.h-without-config.patch b/dev-embedded/u-boot-tools/files/2011.09/0001-Build-timestamp_autogenerated.h-without-config.patch new file mode 100644 index 0000000..95ff18e --- /dev/null +++ b/dev-embedded/u-boot-tools/files/2011.09/0001-Build-timestamp_autogenerated.h-without-config.patch @@ -0,0 +1,93 @@ +From 60b382058c223625aedeb0162f493edce9c7a991 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Lo=C3=AFc=20Minier?= <loic.minier@linaro.org> +Date: Mon, 3 Oct 2011 11:57:10 +0200 +Subject: [PATCH 1/3] Build timestamp_autogenerated.h without config +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Tools such as mkimage include version information but are +config-agnostic; build timestamp_autogenerated.h even when config.mk +isn't generated to fix "make tools" build failure: +gcc [...] -o mkimage.o mkimage.c -c +In file included from include/version.h:27:0, from mkimage.c:26: +include/timestamp.h:27:37: fatal error: timestamp_autogenerated.h: No +such file or directory + +Cc: patches@linaro.org +Signed-off-by: Loïc Minier <loic.minier@linaro.org> +Acked-by: Mike Frysinger <vapier@gentoo.org> +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + Makefile | 19 ++++++++++--------- + 1 files changed, 10 insertions(+), 9 deletions(-) + +diff --git a/Makefile b/Makefile +index b5fb288..a2d2cd7 100644 +--- a/Makefile ++++ b/Makefile +@@ -141,7 +141,7 @@ SUBDIRS = tools \ + examples/standalone \ + examples/api + +-.PHONY : $(SUBDIRS) $(VERSION_FILE) ++.PHONY : $(SUBDIRS) $(VERSION_FILE) $(TIMESTAMP_FILE) + + ifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk)) + +@@ -294,7 +294,7 @@ LIBS += $(CPUDIR)/s5p-common/libs5p-common.o + endif + + LIBS := $(addprefix $(obj),$(sort $(LIBS))) +-.PHONY : $(LIBS) $(TIMESTAMP_FILE) ++.PHONY : $(LIBS) + + LIBBOARD = board/$(BOARDDIR)/lib$(BOARD).o + LIBBOARD := $(addprefix $(obj),$(LIBBOARD)) +@@ -459,10 +459,6 @@ $(obj)mmc_spl/u-boot-mmc-spl.bin: mmc_spl + $(obj)spl/u-boot-spl.bin: depend + $(MAKE) -C spl all + +-$(TIMESTAMP_FILE): +- @LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"' > $@ +- @LC_ALL=C date +'#define U_BOOT_TIME "%T"' >> $@ +- + updater: + $(MAKE) -C tools/updater all + +@@ -553,12 +549,12 @@ $(obj)$(CPUDIR)/$(SOC)/asm-offsets.s: $(obj)include/autoconf.mk.dep + else # !config.mk + all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \ + $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \ +-$(filter-out tools,$(SUBDIRS)) $(TIMESTAMP_FILE) \ ++$(filter-out tools,$(SUBDIRS)) \ + updater depend dep tags ctags etags cscope $(obj)System.map: + @echo "System not configured - see README" >&2 + @ exit 1 + +-tools: $(VERSION_FILE) ++tools: $(VERSION_FILE) $(TIMESTAMP_FILE) + $(MAKE) -C $@ all + endif # config.mk + +@@ -576,11 +572,16 @@ $(VERSION_FILE): + '$(shell $(LD) -v | head -n 1)' )>> $@.tmp + @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@ + ++$(TIMESTAMP_FILE): ++ @mkdir -p $(dir $(TIMESTAMP_FILE)) ++ @LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"' > $@ ++ @LC_ALL=C date +'#define U_BOOT_TIME "%T"' >> $@ ++ + easylogo env gdb: + $(MAKE) -C tools/$@ all MTD_VERSION=${MTD_VERSION} + gdbtools: gdb + +-tools-all: easylogo env gdb $(VERSION_FILE) ++tools-all: easylogo env gdb $(VERSION_FILE) $(TIMESTAMP_FILE) + $(MAKE) -C tools HOST_TOOLS_ALL=y + + .PHONY : CHANGELOG +-- +1.7.6.1 + diff --git a/dev-embedded/u-boot-tools/files/2011.09/0002-Safer-timestamp_autogenerated.h-generation.patch b/dev-embedded/u-boot-tools/files/2011.09/0002-Safer-timestamp_autogenerated.h-generation.patch new file mode 100644 index 0000000..b359ddb --- /dev/null +++ b/dev-embedded/u-boot-tools/files/2011.09/0002-Safer-timestamp_autogenerated.h-generation.patch @@ -0,0 +1,37 @@ +From 205c4b02cd165b8641f08c3aee48d5ed6bd603bb Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Lo=C3=AFc=20Minier?= <loic.minier@linaro.org> +Date: Mon, 3 Oct 2011 11:57:11 +0200 +Subject: [PATCH 2/3] Safer timestamp_autogenerated.h generation +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Generate timestamp_autogenerated.h as safely as version_autogenerated.h. + +Cc: patches@linaro.org +Signed-off-by: Loïc Minier <loic.minier@linaro.org> +Acked-by: Mike Frysinger <vapier@gentoo.org> +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + Makefile | 5 +++-- + 1 files changed, 3 insertions(+), 2 deletions(-) + +diff --git a/Makefile b/Makefile +index a2d2cd7..845789d 100644 +--- a/Makefile ++++ b/Makefile +@@ -574,8 +574,9 @@ $(VERSION_FILE): + + $(TIMESTAMP_FILE): + @mkdir -p $(dir $(TIMESTAMP_FILE)) +- @LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"' > $@ +- @LC_ALL=C date +'#define U_BOOT_TIME "%T"' >> $@ ++ @LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"' > $@.tmp ++ @LC_ALL=C date +'#define U_BOOT_TIME "%T"' >> $@.tmp ++ @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@ + + easylogo env gdb: + $(MAKE) -C tools/$@ all MTD_VERSION=${MTD_VERSION} +-- +1.7.6.1 + diff --git a/dev-embedded/u-boot-tools/files/2011.09/0003-ublimage-NAND-block-size-isn-t-set-at-build-time.patch b/dev-embedded/u-boot-tools/files/2011.09/0003-ublimage-NAND-block-size-isn-t-set-at-build-time.patch new file mode 100644 index 0000000..2eca356 --- /dev/null +++ b/dev-embedded/u-boot-tools/files/2011.09/0003-ublimage-NAND-block-size-isn-t-set-at-build-time.patch @@ -0,0 +1,64 @@ +From 4195b47f8aad7e83b54c62f793c3b249838afc84 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Lo=C3=AFc=20Minier?= <loic.minier@linaro.org> +Date: Mon, 3 Oct 2011 11:57:12 +0200 +Subject: [PATCH 3/3] ublimage: NAND block size isn't set at build-time +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +mkimage's ublimage support can't depend of build-time board configs; +instead, this should be set in ublimage.cfg. Since currently no configs +in u-boot override the NAND block size, hardcode it as such in +ublimage.h to fix a build failure with "make tools": +gcc [...] -o ublimage.o ublimage.c -c +In file included from ublimage.c:37:0: +ublimage.h:31:20: fatal error: config.h: No such file or directory + +Cc: Heiko Schocher <hs@denx.de> +Cc: patches@linaro.org +Signed-off-by: Loïc Minier <loic.minier@linaro.org> +Acked-by: Heiko Schocher <hs@denx.de> +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + tools/ublimage.h | 11 ++++------- + 1 files changed, 4 insertions(+), 7 deletions(-) + +diff --git a/tools/ublimage.h b/tools/ublimage.h +index c926689..93ec8ee 100644 +--- a/tools/ublimage.h ++++ b/tools/ublimage.h +@@ -28,12 +28,6 @@ + #ifndef _UBLIMAGE_H_ + #define _UBLIMAGE_H_ + +-#include <config.h> +- +-#if !defined(CONFIG_SYS_UBL_BLOCK) +-#define CONFIG_SYS_UBL_BLOCK 512 +-#endif +- + enum ublimage_cmd { + CMD_INVALID, + CMD_BOOT_MODE, +@@ -71,6 +65,9 @@ enum ublimage_fld_types { + /* Define max UBL image size */ + #define UBL_IMAGE_SIZE (0x00003800u) + ++/* one NAND block */ ++#define UBL_BLOCK_SIZE 512 ++ + /* from sprufg5a.pdf Table 109 */ + struct ubl_header { + uint32_t magic; /* Magic Number, see UBL_* defines */ +@@ -97,7 +94,7 @@ struct ubl_header { + * Magic Number indicates fast EMIF boot). + */ + /* to fit in one nand block */ +- unsigned char res[CONFIG_SYS_UBL_BLOCK - 8 * 4]; ++ unsigned char res[UBL_BLOCK_SIZE - 8 * 4]; + }; + + #endif /* _UBLIMAGE_H_ */ +-- +1.7.6.1 + diff --git a/dev-embedded/u-boot-tools/metadata.xml b/dev-embedded/u-boot-tools/metadata.xml new file mode 100644 index 0000000..9211408 --- /dev/null +++ b/dev-embedded/u-boot-tools/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>dev-embedded</herd> +</pkgmetadata> diff --git a/dev-embedded/u-boot-tools/u-boot-tools-2011.09.ebuild b/dev-embedded/u-boot-tools/u-boot-tools-2011.09.ebuild new file mode 100644 index 0000000..adb6b84 --- /dev/null +++ b/dev-embedded/u-boot-tools/u-boot-tools-2011.09.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/u-boot-tools/u-boot-tools-2011.09.ebuild,v 1.1 2011/10/14 22:29:35 vapier Exp $ + +EAPI="4" + +inherit toolchain-funcs eutils + +MY_P="u-boot-${PV/_/-}" +DESCRIPTION="utilities for working with Das U-Boot" +HOMEPAGE="http://www.denx.de/wiki/U-Boot/WebHome" +SRC_URI="ftp://ftp.denx.de/pub/u-boot/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86-linux" +IUSE="" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}"/${PV}/*.patch + sed -i -e "s:-g ::" tools/Makefile || die +} + +src_compile() { + emake \ + HOSTSTRIP=echo \ + HOSTCC="$(tc-getCC)" \ + HOSTCFLAGS="${CFLAGS} ${CPPFLAGS}"' $(HOSTCPPFLAGS)' \ + HOSTLDFLAGS="${LDFLAGS}" \ + tools-all +} + +src_install() { + cd tools + dobin bmp_logo gen_eth_addr img2srec mkimage + dobin easylogo/easylogo + dobin env/fw_printenv + dosym fw_printenv /usr/bin/fw_setenv + insinto /etc + doins env/fw_env.config +} |