summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Rosengren <robert.rosengren@stericsson.com>2010-11-11 10:16:56 +0100
committerMichael BRANDT <michael.brandt@stericsson.com>2010-11-19 12:54:31 +0100
commitc8c9d8e3dac93c840baa93db847f72f63a61790c (patch)
tree5096b295b9f1b3a1ee6e711f97120870d17d2d37
parent4aa698e163a47b97d35d14bbe76488b73dd32309 (diff)
MeeGo additions
Added necessary files to build u-boot for MeeGo. ST-Ericsson ID: CR271125 ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10009 Change-Id: Id8cc3680fc3c35f82b4889aa0f259fabac6d41ca Signed-off-by: Robert Rosengren <robert.rosengren@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/8343 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Reviewed-by: Sebastian RASMUSSEN <sebastian.rasmussen@stericsson.com> Reviewed-by: Mario BOIKOV <mario.boikov@stericsson.com>
-rw-r--r--u-boot-rpmlintrc3
-rw-r--r--u-boot.changes17
-rw-r--r--u-boot.spec75
3 files changed, 95 insertions, 0 deletions
diff --git a/u-boot-rpmlintrc b/u-boot-rpmlintrc
new file mode 100644
index 000000000..1dbd34819
--- /dev/null
+++ b/u-boot-rpmlintrc
@@ -0,0 +1,3 @@
+addFilter("u-boot.* executable-stack /boot/u-boot")
+addFilter("u-boot.* statically-linked-binary /boot/u-boot")
+addFilter("u-boot.* name-repeated-in-summary C U-Boot")
diff --git a/u-boot.changes b/u-boot.changes
new file mode 100644
index 000000000..5f6d7f033
--- /dev/null
+++ b/u-boot.changes
@@ -0,0 +1,17 @@
+* Thu Nov 11 2010 Robert Rosengren <robert.rosengren@stericsson.com> - 2009.11
+- Upgraded u-boot that handles TOC partitions. Also removed incorrect git commit
+ from the RPM version.
+* Tue Sep 28 2010 Robert Rosengren <robert.rosengren@stericsson.com> - 2009.11_00012_g7e89ff9
+- Spec file cleanup.
+* Fri Aug 06 2010 Johann Dischler <johann.xx.dischler@stericsson.com> - 2009.11_00012_g7e89ff9
+- Update verion to 2009.11_00012_g7e89ff9
+* Tue Jun 29 2010 Olle Tränk <olle.trank@stericsson.com> - 1.3.1
+- Removed unnecessary source package. Fixed RPMLINT
+ warnings/errors, added rpmlintrc to supress false positive.
+ Cleaned .spec file.
+* Wed Jun 09 2010 Robert Rosengren <robert.rosengren@stericsson.com> - 1.3.1
+- Added patch 3: u-boot-increase-default-kernel-load-size-to-0x220000
+* Mon Jun 07 2010 Olle Tränk <olle.trank@stericsson.com> - 1.3.1
+- Added patches to src package
+* Wed Jun 03 2010 Olle Tränk <olle.trank@stericsson.com> - 1.3.1
+- Initial STE version \ No newline at end of file
diff --git a/u-boot.spec b/u-boot.spec
new file mode 100644
index 000000000..83a23e5d2
--- /dev/null
+++ b/u-boot.spec
@@ -0,0 +1,75 @@
+#Defines
+%define base_version 2009.11
+%define boot_path /boot
+
+Name: u-boot
+Release: 1
+Version: %{base_version}
+License: GPL
+URL: http://www.denx.de/wiki/U-Boot
+Source0: %{name}-%{base_version}.tar.bz2
+Source100: %{name}-rpmlintrc
+
+Summary: Das U-Boot boot loader binary
+Group: Binary
+
+%description
+This package contains the source code for Das U-Boot.
+
+U-Boot is a boot loader for Embedded boards based on PowerPC, ARM,
+MIPS and several other processors, which can be installed in a boot
+ROM and used to initialize and test the hardware or to download and
+run application code.
+
+%package tools
+Summary: Das U-Boot boot image maker
+Group: Development/Tools
+
+%description tools
+U-Boot utility for creating bootable kernel images.
+
+%prep
+%setup -q
+
+%build
+#Default config for u8500
+make u8500_def_config
+
+#Build-id needed/wanted by rpmbuild
+export LDFLAGS="$LDFLAGS --build-id"
+
+make u-boot
+
+#Additional tools
+make -C tools/mk_envimg
+
+%install
+#Build-id needed by rpm
+export LDFLAGS="$LDFLAGS --build-id"
+
+#Binaries
+mkdir -p %{buildroot}%{_bindir} %{buildroot}%{boot_path}
+install -m 755 %{_builddir}/u-boot-%{base_version}/u-boot %{buildroot}%{boot_path}
+install -m 644 %{_builddir}/u-boot-%{base_version}/u-boot.map %{buildroot}%{boot_path}
+install -m 644 %{_builddir}/u-boot-%{base_version}/u-boot.lds %{buildroot}%{boot_path}
+install -m 755 %{_builddir}/u-boot-%{base_version}/tools/mkimage %{buildroot}%{_bindir}
+install -m 755 %{_builddir}/u-boot-%{base_version}/tools/img2srec %{buildroot}%{_bindir}
+install -m 755 %{_builddir}/u-boot-%{base_version}/tools/mk_envimg/mk_envimg %{buildroot}%{_bindir}
+#Remove unwanted sections
+objcopy --gap-fill=0xff --remove-section=.note.gnu.build-id -O binary %{buildroot}%{boot_path}/u-boot %{buildroot}%{boot_path}/u-boot.bin
+
+%clean
+rm -rf %{buildroot}/*
+
+%files
+%defattr(-,root,root)
+%{boot_path}/u-boot.bin
+%{boot_path}/u-boot.map
+%{boot_path}/u-boot
+%{boot_path}/u-boot.lds
+
+%files tools
+%defattr(-,root,root)
+%{_bindir}/mkimage
+%{_bindir}/img2srec
+%{_bindir}/mk_envimg