Several things missing for udev when cross building:
checking for USBUTILS... no
configure: error: Package requirements (usbutils >= 0.82) were not met:
No package 'usbutils' found
I added usbutils to target/generic/pkgsel/20-minimal.in
Then when trying to build usbutils I got:
checking for LIBUSB... no
configure: error: Package requirements (libusb-1.0 >= 1.0.0) were not met:
No package 'libusb-1.0' found
So I added libusb to target/generic/pkgsel/20-minimal.in
Then usbutils cross built OK, but udev failed again
checking for USBUTILS... yes
checking for USB database location... /usr/share/usb.ids
configure: error: pci.ids not found, try --with-pci-ids-path=
Due to previous errors, no 1-udev.log file!
(Try enabling xtrace in the config to track an error inside the build
system.)
--- BUILD ERROR ---
So I added this to udev.conf:
atstage cross && var_append confopt " " "
--with-pci-ids-path=$root/usr/share/"
Patches attached.
Note libusb is still in 50-minimal-desktop.in, probbably should be
removed since i think 20-minimal.in should cover it for everyone.
Jan
Index: architecture/x86-64/config.in
===================================================================
--- architecture/x86-64/config.in (revision 49140)
+++ architecture/x86-64/config.in (working copy)
@@ -37,6 +37,7 @@
haswell "Optimised for Intel Core-i 4-gen (Haswell, AVX2)"
\
broadwell "Optimised for Intel Core-i 5-gen (Broadwell)" \
skylake "Optimised for Intel Core-i 6-gen (Skylake)" \
+ skylake-avx512 "Optimised for Intel Core-i 6-gen (Skylake, AVX512)"
\
cannonlake "Optimised for Intel Core-i 9-gen (Cannonlake, AVX512)"
\
icelake-client "Optimised for Intel Core-i 10-gen (Icelake)" \
atom "Optimised for Intel Atom" \
Index: architecture/x86-64/linux.conf.sh
===================================================================
--- architecture/x86-64/linux.conf.sh (revision 49140)
+++ architecture/x86-64/linux.conf.sh (working copy)
@@ -32,6 +32,8 @@
"ivybridge MCORE2" \
"haswell MCORE2" \
"broadwell MCORE2" \
+ "skylake MCORE2" \
+ "skylake-avx512 MCORE2" \
"bonnel ATOM" \
"silvermont ATOM"
do
Index: package/archiver/xz/xz.desc
===================================================================
--- package/archiver/xz/xz.desc (revision 49140)
+++ package/archiver/xz/xz.desc (working copy)
@@ -38,7 +38,7 @@
[L] OpenSource
[S] Beta
[V] 5.2.4
-[P] X 0----5---9 108.600
+[P] X 0----5---9 105.600
[O] var_append confopt ' ' ' --disable-lzmadec --disable-lzmainfo
--disable-lzma-links'
Index: package/base/linux/linux.conf
===================================================================
--- package/base/linux/linux.conf (revision 49140)
+++ package/base/linux/linux.conf (working copy)
@@ -54,6 +54,8 @@
cp -ar . $root/usr/src/linux-${lx_kernelrelease}
fi
+ #JLR is failing becaus there is no /etc/group
+ touch $root/etc/group
var_append makeopt ' ' vmlinux
if grep -q "CONFIG_MODULES=y" .config ; then
Index: package/database/bdb/bdb.desc
===================================================================
--- package/database/bdb/bdb.desc (revision 49140)
+++ package/database/bdb/bdb.desc (working copy)
@@ -29,6 +29,6 @@
[L] BSD
[S] Stable
[V] 6.2.23
-[P] X -----5---9 107.000
+[P] X -----5---9 102.400
[D] 240f8f5723a9ea98fabf185bf66bb3b9fc54a6e3bdeb0a5847a23e76 db-6.2.23.tar.gz
http://download.oracle.com/berkeley-db/
Index: package/develop/meson/meson.desc
===================================================================
--- package/develop/meson/meson.desc (revision 49140)
+++ package/develop/meson/meson.desc (working copy)
@@ -31,6 +31,9 @@
[O] pyscript=python3
[O] runpysetup=1
+[O] export PYVER="`python -V 2>&1 | sed 's/Python \([0-9]\.[0-9]\).*/\1/'`"
+[O] export PYTHONPATH=$root/usr/lib/python$PYVER/site-packages
+
[CV-URL] https://github.com/mesonbuild/meson/releases
[D] ee272f6b2231c3c449b5453836b236c1f9cc8b219318998e97642ba1
meson-0.52.1.tar.gz !https://github.com/mesonbuild/meson/archive/0.52.1.tar.gz
Index: package/filesystem/squashfs-tools/squashfs-tools.conf
===================================================================
--- package/filesystem/squashfs-tools/squashfs-tools.conf (revision 49140)
+++ package/filesystem/squashfs-tools/squashfs-tools.conf (working copy)
@@ -13,7 +13,7 @@
# --- T2-COPYRIGHT-NOTE-END ---
pkginstalled attr && var_append makeopt ' ' 'XATTR_SUPPORT=1'
-pkginstalled xz && var_append makeopt ' ' 'XZ_SUPPORT=1'
+! atstage toolchain && pkginstalled xz && var_append makeopt ' ' 'XZ_SUPPORT=1'
var_insert GCC_WRAPPER_INSERT ' ' '-fgnu89-inline'
Index: package/perl/perl/perl.desc
===================================================================
--- package/perl/perl/perl.desc (revision 49140)
+++ package/perl/perl/perl.desc (working copy)
@@ -37,6 +37,6 @@
[L] Artistic GPL
[S] Stable
[V] 5.30.1
-[P] X --2--5---9 102.000
+[P] X --2--5---9 102.500
[D] 73dec97a9b7735e5a856a279fba13e348f7512f6decc4e3d561bac5a
perl-5.30.1.tar.gz http://www.perl.com/CPAN/src/5.0/
Index: package/python/python/python.conf
===================================================================
--- package/python/python/python.conf (revision 49140)
+++ package/python/python/python.conf (working copy)
@@ -32,6 +32,8 @@
fi
+# JLR FAILED.
+# sed can't find Modules/Setup.dist
python_modules() {
if pkginstalled gdbm; then
sed -i 's:#gdbm gdbmmodule.c -I/usr/local/include
-L/usr/local/lib:gdbm gdbmmodule.c -I/usr/include -L/usr/lib:'
Modules/Setup.dist
@@ -52,7 +54,8 @@
sed -i 's:#zlib:zlib:' Modules/Setup.dist
fi
}
-atstage toolchain || hook_add preconf 5 "python_modules"
+# JLR FAILED.
+#atstage toolchain || hook_add preconf 5 "python_modules"
# We can savely ignore this dependencies.
var_append flistrfilter "|" ".*: /usr/lib.*/python.*/site-packages/.*"
@@ -59,7 +62,7 @@
# hardcoded paths
fix_python_libdir() {
- sed -i "s,/lib\([[:blank:]]\),/${libdir##*/}\1,g" Modules/Setup.dist
+ #sed -i "s,/lib\([[:blank:]]\),/${libdir##*/}\1,g" Modules/Setup.dist
ln -svnf ../lib/python${ver:0:3} $root/$libdir/python${ver:0:3}
}
[[ $libdir = *lib ]] || hook_add preconf 9 "fix_python_libdir"
@@ -68,6 +71,9 @@
if atstage toolchain; then
export LDFLAGS="-Wl,-rpath,${root}${libdir}"
#hook_add postmake 5 'cp Parser/pgen $root$bindir/python-pgen'
+
+ # env/python fails without this, and other builds that call this will
fail.
+ hook_add postmake 5 'ln -s $root$bindir/python3 $root$bindir/python'
fi
# cross-compiling
Index: package/security/libgpg-error/libgpg-error.conf
===================================================================
--- package/security/libgpg-error/libgpg-error.conf (revision 49140)
+++ package/security/libgpg-error/libgpg-error.conf (working copy)
@@ -12,10 +12,12 @@
# GNU General Public License can be found in the file COPYING.
# --- T2-COPYRIGHT-NOTE-END ---
-if atstage cross; then
- var_remove_regex confopt ' ' '--host=.*'
- # their configure, Makefile code does not cope with any triplet, ...
- x="${arch_target/-t2-/-unknown-}"
- x="${x/sparcv*-unknown-/sparc-unknown-}"
- var_append confopt ' ' "--host=$x"
-fi
+#echo "arch_target is $arch_target"
+#if atstage cross; then
+# var_remove_regex confopt ' ' '--host=.*'
+# # their configure, Makefile code does not cope with any triplet, ...
+# x="${arch_target/-t2-/-unknown-}"
+# x="${x/sparcv*-unknown-/sparc-unknown-}"
+#echo "NEW arch_target is $x"
+# var_append confopt ' ' "--host=$x"
+#fi
Index: target/generic/pkgsel/10-bootstrap.in
===================================================================
--- target/generic/pkgsel/10-bootstrap.in (revision 49140)
+++ target/generic/pkgsel/10-bootstrap.in (working copy)
@@ -43,6 +43,8 @@
X m4
X make
X meson
+X xz
+# xz is needed for glib build
X ninja
X man
X mine
Index: target/generic/pkgsel/20-minimal.in
===================================================================
--- target/generic/pkgsel/20-minimal.in (revision 49140)
+++ target/generic/pkgsel/20-minimal.in (working copy)
@@ -47,9 +47,11 @@
X xfsprogs
X libaio
X lvm2
-X libgpg-error
-X libgcrypt
-X cryptsetup
+# JLR broken triplet
+#X libgpg-error
+#X libgcrypt
+#X cryptsetup
+# JLR broken triplet
X wireless-tools
X libnl
X kbd
@@ -101,6 +103,7 @@
X apr
X apr-util
X serf
+# JLR Bad Python
X scons
X sqlite
X utf8proc
@@ -114,6 +117,7 @@
X libcap
X cdrkit
X popt
+# cant find lzma.h ???
X squashfs-tools
X smartmontools
X ntp
@@ -136,3 +140,6 @@
# sysfiles split
X mkinitrd
+
+# JLR extra
+glog
Index: target/share/install/build_stage2.sh
===================================================================
--- target/share/install/build_stage2.sh (revision 49140)
+++ target/share/install/build_stage2.sh (working copy)
@@ -67,7 +67,7 @@
echo_status "Copying files."
for pkg in `grep '^X ' $base/config/$config/packages | cut -d ' ' -f 5`; do
# include the package?
- #echo maybe $pkg >&2
+ echo maybe $pkg >&2
if [ "${package_map/ $pkg /}" != "$package_map" ]; then
cut -d ' ' -f 2 $build_root/var/adm/flists/$pkg
fi
Index: package/filesystem/udev/udev.conf
===================================================================
--- package/filesystem/udev/udev.conf (revision 49467)
+++ package/filesystem/udev/udev.conf (working copy)
@@ -55,6 +55,7 @@
var_append makeinstopt " " "LD=$CC LDFLAGS= udevdir=$SDECFG_PKG_UDEV_DEVDIR"
var_append makeinstopt " " 'EXTRAS="$uxp" prefix='
var_append makeinstopt " " "pkgconfigdir=/usr/lib/pkgconfig"
+atstage cross && var_append confopt " " " --with-pci-ids-path=$root/usr/share/"
hook_add premake 5 "udev_uxp"
hook_add premake 5 "mkdir -p $root/lib/udev"
Index: target/generic/pkgsel/20-minimal.in
===================================================================
--- target/generic/pkgsel/20-minimal.in (revision 49467)
+++ target/generic/pkgsel/20-minimal.in (working copy)
@@ -88,6 +88,8 @@
X sysfsutils
X sysklogd
X sysvinit
+X libusb
+X usbutils
X udev
X unzip
X perl-gettext
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2