packaging: add .spec file submit/tizen/20140310.095527 submit/tizen/20140312.104709 submit/tizen/20140312.110454 submit/tizen/20140312.110830 submit/tizen/20140312.111005 submit/tizen/20140312.112239 submit/tizen/20140312.112607 submit/tizen/20140313.071600 submit/tizen_boot/20140317.083259
authorChanho Park <chanho61.park@samsung.com>
Fri, 10 Jan 2014 01:48:52 +0000 (10:48 +0900)
committerLukasz Majewski <l.majewski@samsung.com>
Mon, 10 Mar 2014 09:14:01 +0000 (10:14 +0100)
Change-Id: I5dd90f728a9f0f951afda5634f2509cbb3eccc95
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Signed-off-by: Jacek Pielaszkiewicz <j.pielaszkie@samsung.com>
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
.gbs.conf [new file with mode: 0644]
.gitignore
packaging/u-boot.spec [new file with mode: 0644]
packaging/u_boot.manifest [new file with mode: 0644]

diff --git a/.gbs.conf b/.gbs.conf
new file mode 100644 (file)
index 0000000..2290232
--- /dev/null
+++ b/.gbs.conf
@@ -0,0 +1,3 @@
+[general]
+upstream_branch = upstream
+upstream_tag = v${upstreamversion}
index ffe0cc7..c705993 100644 (file)
@@ -36,6 +36,7 @@
 #
 # git files that we don't want to ignore even it they are dot-files
 #
+!.gbs.conf
 !.gitignore
 !.mailmap
 
diff --git a/packaging/u-boot.spec b/packaging/u-boot.spec
new file mode 100644 (file)
index 0000000..ea33d6e
--- /dev/null
@@ -0,0 +1,90 @@
+Name: u-boot
+Version: 2014.01
+Release: 1%{?dist}
+Summary: Das U-Boot - Tizen bootloader
+Group: System/Kernel
+License: GPL-2.0+
+ExclusiveArch: %{arm}
+URL: https://review.tizen.org/git/?p=kernel/u-boot.git
+Source0: %{name}-%{version}.tar.bz2
+Source1001: u_boot.manifest
+
+%description
+u-boot - Tizen bootloader for Embedded boards based on ARM processor
+
+#TODO: Describe rpm package information depending on board
+%package -n u-boot-pkg
+Summary: A bootloader for Embedded system
+Group: System/Kernel
+
+%description -n u-boot-pkg
+A boot loader for embedded systems.
+Das U-Boot is a cross-platform bootloader for embedded systems,
+used as the default boot loader by several board vendors.  It is
+intended to be easy to port and to debug, and runs on many
+supported architectures, including PPC, ARM, MIPS, x86, m68k, NIOS,
+and Microblaze.
+
+%package -n u-boot-tools
+Summary: Companion tools for Das U-Boot bootloader
+Group: System/Kernel
+
+%description -n u-boot-tools
+This package includes the mkimage program, which allows generation of U-Boot
+images in various formats, and the fw_printenv and fw_setenv programs to read
+and modify U-Boot's environment.
+
+%ifarch %{arm}
+%global use_mmc_storage 1
+%endif
+
+%prep
+%setup -q
+
+%build
+cp %{SOURCE1001} .
+
+make mrproper
+
+# Set configuration
+make trats2_config
+
+# Build tools
+make HOSTCC="gcc $RPM_OPT_FLAGS" HOSTSTRIP=/bin/true tools
+
+%if 1%{?use_mmc_storage}
+make HOSTCC="gcc $RPM_OPT_FLAGS" CONFIG_ENV_IS_IN_MMC=y env
+%else
+make HOSTCC="gcc $RPM_OPT_FLAGS" env
+%endif
+
+# Build u-boot
+make
+
+%install
+rm -rf %{buildroot}
+
+# Tools installation
+mkdir -p %{buildroot}%{_bindir}
+install -p -m 0755 tools/mkimage %{buildroot}%{_bindir}
+install -p -m 0755 tools/env/fw_printenv %{buildroot}%{_bindir}
+( cd %{buildroot}%{_bindir}; ln -sf fw_printenv fw_setenv )
+
+# u-boot installation
+install -d %{buildroot}/boot/u-boot
+install -m 755 u-boot.bin %{buildroot}/boot/u-boot
+install -m 755 u-boot-mmc.bin %{buildroot}/boot/u-boot
+
+%clean
+
+%files
+%manifest u_boot.manifest
+%defattr(-,root,root,-)
+/boot/u-boot/
+
+%files -n u-boot-tools
+%manifest u_boot.manifest
+%defattr(-,root,root,-)
+%{_bindir}/mkimage
+%{_bindir}/fw_printenv
+%{_bindir}/fw_setenv
diff --git a/packaging/u_boot.manifest b/packaging/u_boot.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>