diff options
author | Robert Rosengren <robert.rosengren@stericsson.com> | 2010-11-23 13:37:38 +0100 |
---|---|---|
committer | Michael BRANDT <michael.brandt@stericsson.com> | 2010-12-01 09:55:55 +0100 |
commit | 568d0172a478e4a23c8d5642466db3de0771a262 (patch) | |
tree | a80438383c34529dac49c1267a8707c12e81dbbf | |
parent | 2c04f3663422f56daf88b643e1a3eded854860d0 (diff) |
MeeGo: spec-file prepared for other variants
The u-boot spec-file is prepared for customized MeeGo products. The idea
is to add new spec files with the main spec as template, changing the
necessary configuration. From OBS perspective, a new linkpac should be
created with the same name as the spec file (hence triggering build of
the variant).
ST-Ericsson ID: AP280926
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ie51a3c2ecbcd5b71aefa988efa5bc3758079093f
Signed-off-by: Robert Rosengren <robert.rosengren@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/9338
Reviewed-by: Markus HELGESSON <markus.helgesson@stericsson.com>
Reviewed-by: Oscar EKBLADH <oscar.ekbladh@stericsson.com>
Reviewed-by: Olle TRANK <olle.trank@stericsson.com>
Reviewed-by: Robert MARKLUND <robert.marklund@stericsson.com>
Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
-rw-r--r-- | u-boot-u8500.changes (renamed from u-boot.changes) | 4 | ||||
-rw-r--r-- | u-boot-u8500.spec (renamed from u-boot.spec) | 22 |
2 files changed, 15 insertions, 11 deletions
diff --git a/u-boot.changes b/u-boot-u8500.changes index 5f6d7f033..164414aca 100644 --- a/u-boot.changes +++ b/u-boot-u8500.changes @@ -1,4 +1,6 @@ -* Thu Nov 11 2010 Robert Rosengren <robert.rosengren@stericsson.com> - 2009.11 +* Tue Nov 23 2010 Robert Rosengren <robert.rosengren@stericsson.com> - 2009.11-2 +- Renamed u-boot packages to u8500 to easier handle u-boot variants +* Thu Nov 11 2010 Robert Rosengren <robert.rosengren@stericsson.com> - 2009.11-1 - 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 diff --git a/u-boot.spec b/u-boot-u8500.spec index 253fb9175..fdb5e47f8 100644 --- a/u-boot.spec +++ b/u-boot-u8500.spec @@ -1,14 +1,16 @@ #Defines +%define base_name u-boot +%define variant_name u8500 %define base_version 2009.11 %define boot_path /boot -Name: u-boot -Release: 1 +Name: %{base_name}-%{variant_name} +Release: 2 Version: %{base_version} License: GPL URL: http://www.denx.de/wiki/U-Boot -Source0: %{name}-%{base_version}.tar.bz2 -Source100: %{name}-rpmlintrc +Source0: %{base_name}-%{base_version}.tar.bz2 +Source100: %{base_name}-rpmlintrc Summary: Das U-Boot boot loader binary Group: Binary @@ -21,19 +23,19 @@ 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 +%package -n %{base_name}-tools Summary: Das U-Boot boot image maker Group: Development/Tools -%description tools +%description -n %{base_name}-tools U-Boot utility for creating bootable kernel images. %prep -%setup -q +%setup -q -n %{base_name}-%{base_version} %build -#Default config for u8500 -make u8500_def_config +#Make default config for variant +make %{variant_name}_def_config #Build-id needed/wanted by rpmbuild export LDFLAGS="$LDFLAGS --build-id" @@ -71,7 +73,7 @@ rm -rf %{buildroot}/* %{boot_path}/u-boot.lds %{boot_path}/splash.bin -%files tools +%files -n %{base_name}-tools %defattr(-,root,root) %{_bindir}/mkimage %{_bindir}/img2srec |