Index: build_packages_list
===================================================================
--- build_packages_list (revision 16)
+++ build_packages_list (revision 17)
@@ -16,10 +16,11 @@
# Generate $(HARDWARE).pkglist file for current directory
#
# usage:
-# $0 topdir toolchain hardware
+# $0 topdir pkgarch toolchain hardware
#
# where:
# 'topdir' - is a absolute path to the top directory of checked out branch
+# 'pkgarch' - is a ARCHITECTURE name
# 'toolchain' - is a TOOLCHAIN name
# 'hardware' - is a HARDWARE variant
#
@@ -26,7 +27,7 @@
# global variables
my ($build_system);
-my ($topdir, $toolchain, $hardware, $flavour);
+my ($topdir, $pkgarch, $toolchain, $hardware, $flavour);
my ($target_build_dir, $requires_file);
my ($pkglist_file);
my ($system_version, $distro_name, $distro_version, $url);
@@ -43,6 +44,7 @@
Usage: $0 topdir toolchain hardware
Where:
topdir - is a absolute path to the top of checked out branch;
+ pkgarch - is a ARCHITECTURE name;
toolchain - is a TOOLCHAIN name;
hardware - is a HARDWARE variant.
@@ -378,7 +380,7 @@
# version => $(PKG_VERSION) from Makefile
# group => $(PKG_GROUP) from Makefile {app,base,dev,libs,net,...}
#
-# arch => $toolchain from comandline args
+# arch => $pkgarch from comandline args
# hardware => $hardware from comandline args
# flavour => $flavour from comandline args for ROOT pkg, from REQUIRES for dependencies
# tarball => "$name-$version-$arch-$distro_name-$distro_version.$tarball_suffix"
@@ -415,7 +417,7 @@
}
$pkg{'version'} = pkg_version( $makefile );
- $pkg{'arch'} = $toolchain;
+ $pkg{'arch'} = $pkgarch;
$pkg{'hardware'} = $hardware;
$pkg{'flavour'} = $flavour;
$pkg{'group'} = pkg_group( $makefile );
@@ -443,6 +445,7 @@
# Get the rest arguments of the command line
$topdir = shift;
+$pkgarch = shift;
$toolchain = shift;
$hardware = shift;
$flavour = shift;
@@ -450,6 +453,7 @@
my $makefile = "Makefile";
if( ! defined $topdir or $topdir eq "" ) { usage; }
+if( ! defined $pkgarch or $pkgarch eq "" ) { usage; }
if( ! defined $toolchain or $toolchain eq "" ) { usage; }
if( ! defined $hardware or $hardware eq "" ) { usage; }
if( ! defined $flavour or $flavour eq "" ) { $flavour = ""; }