Hello community, here is the log from the commit of package dtb-source for openSUSE:Factory checked in at 2014-04-06 07:16:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/dtb-source (Old) and /work/SRC/openSUSE:Factory/.dtb-source.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "dtb-source" Changes: -------- New Changes file: --- /dev/null 2014-02-13 01:09:38.344032506 +0100 +++ /work/SRC/openSUSE:Factory/.dtb-source.new/dtb-armv6l.changes 2014-04-06 07:16:02.000000000 +0200 @@ -0,0 +1,88 @@ +------------------------------------------------------------------- +Thu Apr 3 16:07:04 UTC 2014 - [email protected] + +- build against kernel-source instead of a local copy + of kernel sources + +------------------------------------------------------------------- +Thu Apr 3 14:31:18 UTC 2014 - [email protected] + +- update pre_checkin.pl: generate all DTB's from a single + spec file per architecture. + +------------------------------------------------------------------- +Thu Apr 3 09:18:01 UTC 2014 - [email protected] + +- Add Rockchip RK3XXX dtbs + +------------------------------------------------------------------- +Thu Apr 3 09:01:22 UTC 2014 - [email protected] + +- Fix dtb-keystone by using 'k2hk-evm' as only keystone board + +------------------------------------------------------------------- +Thu Apr 3 08:19:35 UTC 2014 - [email protected] + +- Update to 3.14 + +------------------------------------------------------------------- +Sat Mar 8 08:37:27 UTC 2014 - [email protected] + +- Update to 3.13.6 + + Remove am33xx.patch. + +------------------------------------------------------------------- +Wed Jan 8 13:43:55 UTC 2014 - [email protected] + +- Add am33xx.patch: improve support Beagle Bone Black + +------------------------------------------------------------------- +Fri Jan 3 20:42:41 UTC 2014 - [email protected] + +- Expose bigger groups of devices to catch new ones more + easily + +------------------------------------------------------------------- +Fri Jan 3 20:00:38 UTC 2014 - [email protected] + +- Add i.MX 53 dtbs + +------------------------------------------------------------------- +Tue Dec 17 15:57:17 UTC 2013 - [email protected] + +- Add dtb-am335x which supports Beagle Bone, + Beagle Bone Black, TI AM335x EVM and TI AM335x EVM-SK + +------------------------------------------------------------------- +Tue Dec 17 13:53:37 UTC 2013 - [email protected] + +- Update to 3.12.5 + +------------------------------------------------------------------- +Thu Nov 21 11:04:57 UTC 2013 - [email protected] + +- Fix pre_checkin.pl script to update *.changes hardlinks even if +files exist before (-f option) + +------------------------------------------------------------------- +Thu Nov 21 10:53:31 UTC 2013 - [email protected] + +- Add chromebook 5250 support + +------------------------------------------------------------------- +Thu Nov 14 14:00:52 UTC 2013 - [email protected] + +- Add Arndaleboard 5250 support + +------------------------------------------------------------------- +Fri Sep 27 14:18:38 UTC 2013 - [email protected] + +- make dtb-source buildable +- change *.changes to be hardlinks +- install COPYING + +------------------------------------------------------------------- +Thu Sep 26 15:06:59 UTC 2013 - [email protected] + +- Initial release - Version 3.11.1 + New Changes file: dtb-armv7l.changes: same change --- /work/SRC/openSUSE:Factory/dtb-source/dtb-source.changes 2014-03-14 15:15:58.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.dtb-source.new/dtb-source.changes 2014-04-06 07:16:02.000000000 +0200 @@ -1,0 +2,27 @@ +Thu Apr 3 16:07:04 UTC 2014 - [email protected] + +- build against kernel-source instead of a local copy + of kernel sources + +------------------------------------------------------------------- +Thu Apr 3 14:31:18 UTC 2014 - [email protected] + +- update pre_checkin.pl: generate all DTB's from a single + spec file per architecture. + +------------------------------------------------------------------- +Thu Apr 3 09:18:01 UTC 2014 - [email protected] + +- Add Rockchip RK3XXX dtbs + +------------------------------------------------------------------- +Thu Apr 3 09:01:22 UTC 2014 - [email protected] + +- Fix dtb-keystone by using 'k2hk-evm' as only keystone board + +------------------------------------------------------------------- +Thu Apr 3 08:19:35 UTC 2014 - [email protected] + +- Update to 3.14 + +------------------------------------------------------------------- Old: ---- dtb-am335x.changes dtb-am335x.spec dtb-armada-370.changes dtb-armada-370.spec dtb-armada-xp.changes dtb-armada-xp.spec dtb-bcm2835.changes dtb-bcm2835.spec dtb-dove.changes dtb-dove.spec dtb-exynos4.changes dtb-exynos4.spec dtb-exynos5.changes dtb-exynos5.spec dtb-imx5.changes dtb-imx5.spec dtb-imx6.changes dtb-imx6.spec dtb-keystone.changes dtb-keystone.spec dtb-omap3.changes dtb-omap3.spec dtb-omap4.changes dtb-omap4.spec dtb-omap5.changes dtb-omap5.spec dtb-ste.changes dtb-ste.spec dtb-sun4i.changes dtb-sun4i.spec dtb-sun5i.changes dtb-sun5i.spec dtb-sun6i.changes dtb-sun6i.spec dtb-sun7i.changes dtb-sun7i.spec dtb-tegra2.changes dtb-tegra2.spec dtb-tegra3.changes dtb-tegra3.spec dtb-xenvm.changes dtb-xenvm.spec linux-3.13.6.tar.xz New: ---- dtb-armv6l.changes dtb-armv6l.spec dtb-armv7l.changes dtb-armv7l.spec ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ dtb-armv6l.spec ++++++ # # spec file for package dtb-armv6l # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: dtb-armv6l BuildRequires: kernel-source Version: %(rpm -q --qf "%{VERSION}" kernel-source | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not") Release: 0 Summary: Device Tree files for $MACHINES License: GPL-2.0 Group: System/Boot Url: http://www.kernel.org/ %if "dtb-armv6l" == "dtb-source" Source99: pre_checkin.pl %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: cpp BuildRequires: dtc >= 1.4.0 BuildRequires: xz ExclusiveArch: armv6l armv6hl %description Device Tree files for $MACHINES. %package -n dtb-bcm2835 Summary: Raspberry PI B Group: System/Boot %description -n dtb-bcm2835 Device Tree Files for Raspberry PI B. %prep %build cp /usr/src/linux/COPYING . cp -r /usr/src/linux/ . chmod -R ug+rw linux %install %if "dtb-armv6l" != "dtb-source" export DTC_FLAGS="-R 4 -p 0x1000" mkdir -p %{buildroot}/boot/dtb cd linux/arch/arm/boot/dts for dts in bcm2835*.dts ; do target=${dts%*.dts} cpp -x assembler-with-cpp -undef -D__DTS__ -nostdinc -I. -I./include/ -P $target.dts -o $target.dts.tmp dtc $DTC_FLAGS -I dts -O dtb -o %{buildroot}/boot/dtb/$target.dtb $target.dts.tmp done cd - %files -n dtb-bcm2835 %defattr(-,root,root) %doc COPYING %dir /boot/dtb/ /boot/dtb/bcm2835*.dtb %endif %changelog ++++++ dtb-armv7l.spec ++++++ # # spec file for package dtb-armv7l # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: dtb-armv7l BuildRequires: kernel-source Version: %(rpm -q --qf "%{VERSION}" kernel-source | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not") Release: 0 Summary: Device Tree files for $MACHINES License: GPL-2.0 Group: System/Boot Url: http://www.kernel.org/ %if "dtb-armv7l" == "dtb-source" Source99: pre_checkin.pl %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: cpp BuildRequires: dtc >= 1.4.0 BuildRequires: xz ExclusiveArch: armv7l armv7hl %description Device Tree files for $MACHINES. %package -n dtb-omap3 Summary: TI OMAP3 based systems Group: System/Boot %description -n dtb-omap3 Device Tree Files for TI OMAP3 based systems. %package -n dtb-omap4 Summary: TI OMAP4 based systems Group: System/Boot %description -n dtb-omap4 Device Tree Files for TI OMAP4 based systems. %package -n dtb-omap5 Summary: TI OMAP5 based systems Group: System/Boot %description -n dtb-omap5 Device Tree Files for TI OMAP5 based systems. %package -n dtb-am335x Summary: TI AM335x based systems Group: System/Boot %description -n dtb-am335x Device Tree Files for TI AM335x based systems. %package -n dtb-keystone Summary: TI Keystone based systems Group: System/Boot %description -n dtb-keystone Device Tree Files for TI Keystone based systems. %package -n dtb-exynos4 Summary: Samsung Exynos4 based systems Group: System/Boot %description -n dtb-exynos4 Device Tree Files for Samsung Exynos4 based systems. %package -n dtb-exynos5 Summary: Samsung Exynos5 based systems Group: System/Boot %description -n dtb-exynos5 Device Tree Files for Samsung Exynos5 based systems. %package -n dtb-imx5 Summary: Freescale i.MX51 and i.MX53 based systems Group: System/Boot %description -n dtb-imx5 Device Tree Files for Freescale i.MX51 and i.MX53 based systems. %package -n dtb-imx6 Summary: Freescale i.MX6 based systems Group: System/Boot %description -n dtb-imx6 Device Tree Files for Freescale i.MX6 based systems. %package -n dtb-tegra2 Summary: NVidia Tegra2 based systems Group: System/Boot %description -n dtb-tegra2 Device Tree Files for NVidia Tegra2 based systems. %package -n dtb-tegra3 Summary: NVidia Tegra3 based systems Group: System/Boot %description -n dtb-tegra3 Device Tree Files for NVidia Tegra3 based systems. %package -n dtb-sun4i Summary: Allwinner sun4i based systems Group: System/Boot %description -n dtb-sun4i Device Tree Files for Allwinner sun4i based systems. %package -n dtb-sun5i Summary: Allwinner sun5i based systems Group: System/Boot %description -n dtb-sun5i Device Tree Files for Allwinner sun5i based systems. %package -n dtb-sun6i Summary: Allwinner sun6i based systems Group: System/Boot %description -n dtb-sun6i Device Tree Files for Allwinner sun6i based systems. %package -n dtb-sun7i Summary: Allwinner sun7i based systems Group: System/Boot %description -n dtb-sun7i Device Tree Files for Allwinner sun7i based systems. %package -n dtb-xenvm Summary: Xen virtual machines Group: System/Boot %description -n dtb-xenvm Device Tree Files for Xen virtual machines. %package -n dtb-ste Summary: ST Ericsson based systems Group: System/Boot %description -n dtb-ste Device Tree Files for ST Ericsson based systems. %package -n dtb-dove Summary: Marvell dove based systems Group: System/Boot %description -n dtb-dove Device Tree Files for Marvell dove based systems. %package -n dtb-armada-370 Summary: Armada 370 based systems Group: System/Boot %description -n dtb-armada-370 Device Tree Files for Armada 370 based systems. %package -n dtb-armada-xp Summary: Armada XP based systems Group: System/Boot %description -n dtb-armada-xp Device Tree Files for Armada XP based systems. %package -n dtb-rk3 Summary: Rockchip RK3xxx based systems Group: System/Boot %description -n dtb-rk3 Device Tree Files for Rockchip RK3xxx based systems. %prep %build cp /usr/src/linux/COPYING . cp -r /usr/src/linux/ . chmod -R ug+rw linux %install %if "dtb-armv7l" != "dtb-source" export DTC_FLAGS="-R 4 -p 0x1000" mkdir -p %{buildroot}/boot/dtb cd linux/arch/arm/boot/dts for dts in *omap3*.dts *omap4*.dts *omap5*.dts *am335x*.dts k2hk-evm.dts *exynos4*.dts *exynos5*.dts *imx5*.dts *imx6*.dts *tegra2*.dts *tegra3*.dts *sun4i*.dts *sun5i*.dts *sun6i*.dts *sun7i*.dts *xenvm*.dts ste*.dts dove*.dts armada-370*.dts armada-xp*.dts rk3*.dts ; do target=${dts%*.dts} cpp -x assembler-with-cpp -undef -D__DTS__ -nostdinc -I. -I./include/ -P $target.dts -o $target.dts.tmp dtc $DTC_FLAGS -I dts -O dtb -o %{buildroot}/boot/dtb/$target.dtb $target.dts.tmp done cd - %files -n dtb-omap3 %defattr(-,root,root) %doc COPYING %dir /boot/dtb/ /boot/dtb/*omap3*.dtb %files -n dtb-omap4 %defattr(-,root,root) %doc COPYING %dir /boot/dtb/ /boot/dtb/*omap4*.dtb %files -n dtb-omap5 %defattr(-,root,root) %doc COPYING %dir /boot/dtb/ /boot/dtb/*omap5*.dtb %files -n dtb-am335x %defattr(-,root,root) %doc COPYING %dir /boot/dtb/ /boot/dtb/*am335x*.dtb %files -n dtb-keystone %defattr(-,root,root) %doc COPYING %dir /boot/dtb/ /boot/dtb/k2hk-evm.dtb %files -n dtb-exynos4 %defattr(-,root,root) %doc COPYING %dir /boot/dtb/ /boot/dtb/*exynos4*.dtb %files -n dtb-exynos5 %defattr(-,root,root) %doc COPYING %dir /boot/dtb/ /boot/dtb/*exynos5*.dtb %files -n dtb-imx5 %defattr(-,root,root) %doc COPYING %dir /boot/dtb/ /boot/dtb/*imx5*.dtb %files -n dtb-imx6 %defattr(-,root,root) %doc COPYING %dir /boot/dtb/ /boot/dtb/*imx6*.dtb %files -n dtb-tegra2 %defattr(-,root,root) %doc COPYING %dir /boot/dtb/ /boot/dtb/*tegra2*.dtb %files -n dtb-tegra3 %defattr(-,root,root) %doc COPYING %dir /boot/dtb/ /boot/dtb/*tegra3*.dtb %files -n dtb-sun4i %defattr(-,root,root) %doc COPYING %dir /boot/dtb/ /boot/dtb/*sun4i*.dtb %files -n dtb-sun5i %defattr(-,root,root) %doc COPYING %dir /boot/dtb/ /boot/dtb/*sun5i*.dtb %files -n dtb-sun6i %defattr(-,root,root) %doc COPYING %dir /boot/dtb/ /boot/dtb/*sun6i*.dtb %files -n dtb-sun7i %defattr(-,root,root) %doc COPYING %dir /boot/dtb/ /boot/dtb/*sun7i*.dtb %files -n dtb-xenvm %defattr(-,root,root) %doc COPYING %dir /boot/dtb/ /boot/dtb/*xenvm*.dtb %files -n dtb-ste %defattr(-,root,root) %doc COPYING %dir /boot/dtb/ /boot/dtb/ste*.dtb %files -n dtb-dove %defattr(-,root,root) %doc COPYING %dir /boot/dtb/ /boot/dtb/dove*.dtb %files -n dtb-armada-370 %defattr(-,root,root) %doc COPYING %dir /boot/dtb/ /boot/dtb/armada-370*.dtb %files -n dtb-armada-xp %defattr(-,root,root) %doc COPYING %dir /boot/dtb/ /boot/dtb/armada-xp*.dtb %files -n dtb-rk3 %defattr(-,root,root) %doc COPYING %dir /boot/dtb/ /boot/dtb/rk3*.dtb %endif %changelog ++++++ dtb-source.spec ++++++ --- /var/tmp/diff_new_pack.vxewmo/_old 2014-04-06 07:16:04.000000000 +0200 +++ /var/tmp/diff_new_pack.vxewmo/_new 2014-04-06 07:16:04.000000000 +0200 @@ -17,43 +17,46 @@ Name: dtb-source -Version: 3.13.6 +BuildRequires: kernel-source +Version: %(rpm -q --qf "%{VERSION}" kernel-source | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not") Release: 0 -Summary: Device Tree files for NONE (source) +Summary: Device Tree files for $MACHINES License: GPL-2.0 Group: System/Boot Url: http://www.kernel.org/ -Source0: linux-%{version}.tar.xz +%if "dtb-source" == "dtb-source" +Source99: pre_checkin.pl +%endif BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: cpp BuildRequires: dtc >= 1.4.0 BuildRequires: xz %description -Device Tree files for NONE (source). +Device Tree files for $MACHINES. + + %prep -%setup -q -n linux-%{version} %build +cp /usr/src/linux/COPYING . +cp -r /usr/src/linux/ . +chmod -R ug+rw linux %install -%if "none" != "none" +%if "dtb-source" != "dtb-source" export DTC_FLAGS="-R 4 -p 0x1000" mkdir -p %{buildroot}/boot/dtb -cd arch/arm/boot/dts -for dts in none; do + +cd linux/arch/arm/boot/dts +for dts in ; do target=${dts%*.dts} cpp -x assembler-with-cpp -undef -D__DTS__ -nostdinc -I. -I./include/ -P $target.dts -o $target.dts.tmp dtc $DTC_FLAGS -I dts -O dtb -o %{buildroot}/boot/dtb/$target.dtb $target.dts.tmp done cd - -%files -%defattr(-,root,root) -%dir /boot/dtb/ -%doc COPYING -/boot/dtb/* %endif %changelog ++++++ dtb.spec.in ++++++ --- /var/tmp/diff_new_pack.vxewmo/_old 2014-04-06 07:16:04.000000000 +0200 +++ /var/tmp/diff_new_pack.vxewmo/_new 2014-04-06 07:16:04.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package $NAME # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,43 +17,47 @@ Name: $NAME -Version: 3.13.6 +BuildRequires: kernel-source +Version: %(rpm -q --qf "%{VERSION}" kernel-source | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not") Release: 0 Summary: Device Tree files for $MACHINES License: GPL-2.0 Group: System/Boot Url: http://www.kernel.org/ -Source0: linux-%{version}.tar.xz +%if "$NAME" == "dtb-source" +Source99: pre_checkin.pl +%endif BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: cpp +BuildRequires: cpp BuildRequires: dtc >= 1.4.0 BuildRequires: xz $ARCH_RESTRICTIONS + %description Device Tree files for $MACHINES. +$SUBPKG_DESC + %prep -%setup -q -n linux-%{version} %build +cp /usr/src/linux/COPYING . +cp -r /usr/src/linux/ . +chmod -R ug+rw linux %install -%if "$SUPPORTED_DTB" != "none" +%if "$NAME" != "dtb-source" export DTC_FLAGS="-R 4 -p 0x1000" mkdir -p %{buildroot}/boot/dtb -cd arch/arm/boot/dts -for dts in $SUPPORTED_DTB; do + +cd linux/arch/arm/boot/dts +for dts in $ALL_SUPPORTED_DTB; do target=${dts%*.dts} cpp -x assembler-with-cpp -undef -D__DTS__ -nostdinc -I. -I./include/ -P $target.dts -o $target.dts.tmp dtc $DTC_FLAGS -I dts -O dtb -o %{buildroot}/boot/dtb/$target.dtb $target.dts.tmp done cd - -%files -%defattr(-,root,root) -%dir /boot/dtb/ -%doc COPYING -/boot/dtb/* +$SUBPKG_FILES %endif - %changelog ++++++ pre_checkin.pl ++++++ --- /var/tmp/diff_new_pack.vxewmo/_old 2014-04-06 07:16:04.000000000 +0200 +++ /var/tmp/diff_new_pack.vxewmo/_new 2014-04-06 07:16:04.000000000 +0200 @@ -1,139 +1,104 @@ -#!/usr/bin/perl +#!/usr/bin/perl -w + +use strict; +use Data::Dumper; + +my $spec_in = "dtb.spec.in"; -$spec_in="dtb.spec.in"; # DTB packages names -@package_list = ('dtb-source', - 'dtb-omap3', - 'dtb-omap4', - 'dtb-omap5', - 'dtb-am335x', - 'dtb-keystone', - 'dtb-exynos4', - 'dtb-exynos5', - 'dtb-imx5', - 'dtb-imx6', - 'dtb-tegra2', - 'dtb-tegra3', - 'dtb-sun4i', - 'dtb-sun5i', - 'dtb-sun6i', - 'dtb-sun7i', - 'dtb-xenvm', - 'dtb-ste', - 'dtb-dove', - 'dtb-armada-370', - 'dtb-armada-xp', - 'dtb-bcm2835', - ); -# Which DTB to build -@supported_dtb = ('none', - '*omap3*.dts', - '*omap4*.dts', - '*omap5*.dts', - '*am335x*.dts', - '*keystone*.dts', - '*exynos4*.dts', - '*exynos5*.dts', - '*imx5*.dts', - '*imx6*.dts', - '*tegra2*.dts', - '*tegra3*.dts', - '*sun4i*.dts', - '*sun5i*.dts', - '*sun6i*.dts', - '*sun7i*.dts', - '*xenvm*.dts', - 'ste*.dts', - 'dove*.dts', - 'armada-370*.dts', - 'armada-xp*.dts', - 'bcm2835*.dts', - ); -# Text used in summary and description -@supported_machines = ("NONE (source)", - "TI OMAP3 based systems", - "TI OMAP4 based systems", - "TI OMAP5 based systems", - "TI AM335x based systems", - "TI Keystone based systems", - "Samsung Exynos4 based systems", - "Samsung Exynos5 based systems", - "Freescale i.MX51 and i.MX53 based systems", - "Freescale i.MX6 based systems", - "NVidia Tegra2 based systems", - "NVidia Tegra3 based systems", - "Allwinner sun4i based systems", - "Allwinner sun5i based systems", - "Allwinner sun6i based systems", - "Allwinner sun7i based systems", - "Xen virtual machines", - "ST Ericsson based systems", - "Marvell dove based systems", - "Armada 370 based systems", - "Armada XP based systems", - "Raspberry PI B", - ); -# ExclusiveArch field -@exclusive_arch = ("", - "armv7l armv7hl", - "armv7l armv7hl", - "armv7l armv7hl", - "armv7l armv7hl", - "armv7l armv7hl", - "armv7l armv7hl", - "armv7l armv7hl", - "armv7l armv7hl", - "armv7l armv7hl", - "armv7l armv7hl", - "armv7l armv7hl", - "armv7l armv7hl", - "armv7l armv7hl", - "armv7l armv7hl", - "armv7l armv7hl", - "armv7l armv7hl", - "armv7l armv7hl", - "armv7l armv7hl", - "armv7l armv7hl", - "armv7l armv7hl", - "armv6l armv6hl", - ); - - - -$i=0; - -foreach $NAME (@package_list){ - # open .spec and .spec.in files - open ($NAME, ">$NAME.spec") or die "Unable to open $NAME.spec.\n"; - open (pkg_spec_template, "$spec_in") or die "Unable to open $spec_in.\n"; - - # Compute ARCH restrictions, if any - if ($exclusive_arch[$i] eq ""){ - $ARCH_RESTRICTIONS=""; # Build for all - } - else { - $ARCH_RESTRICTIONS="ExclusiveArch: $exclusive_arch[$i]"; - } - - # Package specific infos - $MACHINES=$supported_machines[$i]; - $SUPPORTED_DTB=$supported_dtb[$i]; - - # spec file generation - while(<pkg_spec_template>){ - $_ =~ s/\$NAME/$NAME/g; - $_ =~ s/\$ARCH_RESTRICTIONS/$ARCH_RESTRICTIONS/g; - $_ =~ s/\$MACHINES/$MACHINES/g; - $_ =~ s/\$SUPPORTED_DTB/$SUPPORTED_DTB/g; - print $NAME $_; - } - - close(pkg_spec_template); - close($NAME); - - # Make symlink for .changes file - if ($NAME ne "dtb-source"){ - system("cp -lf $package_list[0].changes $package_list[$i].changes"); - } - $i++; +my @armv7l_package_list = ( + ['dtb-omap3', '*omap3*.dts', "TI OMAP3 based systems"], + ['dtb-omap4', '*omap4*.dts', "TI OMAP4 based systems"], + ['dtb-omap5', '*omap5*.dts', "TI OMAP5 based systems"], + ['dtb-am335x', '*am335x*.dts', "TI AM335x based systems"], + ['dtb-keystone', 'k2hk-evm.dts', "TI Keystone based systems"], + ['dtb-exynos4', '*exynos4*.dts', "Samsung Exynos4 based systems"], + ['dtb-exynos5', '*exynos5*.dts', "Samsung Exynos5 based systems"], + ['dtb-imx5', '*imx5*.dts', "Freescale i.MX51 and i.MX53 based systems"], + ['dtb-imx6', '*imx6*.dts', "Freescale i.MX6 based systems"], + ['dtb-tegra2', '*tegra2*.dts', "NVidia Tegra2 based systems"], + ['dtb-tegra3', '*tegra3*.dts', "NVidia Tegra3 based systems"], + ['dtb-sun4i', '*sun4i*.dts', "Allwinner sun4i based systems"], + ['dtb-sun5i', '*sun5i*.dts', "Allwinner sun5i based systems"], + ['dtb-sun6i', '*sun6i*.dts', "Allwinner sun6i based systems"], + ['dtb-sun7i', '*sun7i*.dts', "Allwinner sun7i based systems"], + ['dtb-xenvm', '*xenvm*.dts', "Xen virtual machines"], + ['dtb-ste', 'ste*.dts', "ST Ericsson based systems"], + ['dtb-dove', 'dove*.dts', "Marvell dove based systems"], + ['dtb-armada-370', 'armada-370*.dts', "Armada 370 based systems"], + ['dtb-armada-xp', 'armada-xp*.dts', "Armada XP based systems"], + ['dtb-rk3', 'rk3*.dts', "Rockchip RK3xxx based systems"], +); + +# DTB packages names +my @armv6l_package_list = ( + ['dtb-bcm2835', 'bcm2835*.dts', "Raspberry PI B"], +); + +sub generate_spec($$$) +{ + my ($main_package, $exclusive_arch, $package_list) = @_; + + open (SPEC, ">$main_package.spec") or die "Unable to open $main_package.spec.\n"; + open (TEMPLATE, "$spec_in") or die "Unable to open $spec_in.\n"; + + my $ARCH_RESTRICTIONS = ""; + $ARCH_RESTRICTIONS = "ExclusiveArch: $exclusive_arch" + unless ($exclusive_arch eq 'none'); + + my $subpkg_desc = ""; + my $subpkg_files = ""; + my $all_supported_dtb = ""; + + foreach my $NAME (@$package_list) { + # open .spec and .spec.in files + my $PKG_NAME = @{$NAME}[0]; + my $SUPPORTED_DTB = @{$NAME}[1]; + my $MACHINES = @{$NAME}[2]; + + $subpkg_desc .= + "%package -n $PKG_NAME\n" . + "Summary:\t$MACHINES\n" . + "License:\tGPL-2.0\n" . + "Group:\t\tSystem/Boot\n" . + "\n" . + "%description -n $PKG_NAME\n" . + "Device Tree Files for $MACHINES.\n\n"; + + my $bin_supported_dtb = $SUPPORTED_DTB; + $bin_supported_dtb =~ s/\.dts/\.dtb/g; + + $subpkg_files .= + "%files -n $PKG_NAME\n" . + "%defattr(-,root,root)\n" . + "%doc COPYING\n" . + "%dir /boot/dtb/\n" . + "/boot/dtb/$bin_supported_dtb\n" . + "\n"; + + $all_supported_dtb .= "$SUPPORTED_DTB "; + } + chomp($all_supported_dtb); + + # spec file generation + while(<TEMPLATE>){ + $_ =~ s/\$NAME/$main_package/g; + $_ =~ s/\$ARCH_RESTRICTIONS/$ARCH_RESTRICTIONS/g; + $_ =~ s/\$SUBPKG_DESC/$subpkg_desc/g; + $_ =~ s/\$ALL_SUPPORTED_DTB/$all_supported_dtb/g; + $_ =~ s/\$SUBPKG_FILES/$subpkg_files/g; + print SPEC $_; + } + + close(TEMPLATE); + close(SPEC); + + # Make symlink for .changes file + if ("dtb-source" ne $main_package) { + system("cp -lf dtb-source.changes $main_package.changes"); + } } + +generate_spec('dtb-source', 'none', []); +generate_spec('dtb-armv7l', "armv7l armv7hl", \@armv7l_package_list); +generate_spec('dtb-armv6l', "armv6l armv6hl", \@armv6l_package_list); -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
