Ned Konz

Problems with LTIB on Ubuntu 12.04

Discussion created by Ned Konz on Aug 9, 2012

I'm using LTIB (Freescale 11.09.01 sources, with various patches for 12.04 compatibility) with the 2.6.35 kernel for i.mx53.

Everything was working fine, until I did:


./ltib -p kernel-2.6.35 -m scbuild ./ltib -p kernel-2.6.35 -m patchmerge

when I got this error message:


get_spec(kernel-2.6.35)
template: /home/lucid/imx53/11.09.01/ltib/dist/lfs-5.1/kernel/kernel-common.tmpl
spec files: [ /home/lucid/imx53/11.09.01/ltib/tmp/kernel-2.6.35.spec, config/platform/imx/kernel-2.6.35.spec.in ]
pfx=/opt/freescale/rootfs/%{_target_cpu}
prep=
%define buildsubdir %{pkg_name}-%{version}
KSRC_DIR=${PKG_KERNEL_PATH_PRECONFIG:-%{_builddir}/%{buildsubdir}} if [ -z "$PKG_KERNEL_LEAVESRC" ] || [ ! -d "$KSRC_DIR" ]
then
%setup -n %{buildsubdir} -a 1
chmod 755 patches/patch-kernel.sh
./patches/patch-kernel.sh
fi group=System Environment/Kernel
buildroot=%{_tmppath}/%{name}
summary=Linux kernel (core of the Linux operating system)
url=http://www.kernel.org/
version=2.6.35.3
name=kernel
release=imx_11.09.01
packager=Rob Herring
license=GPL
sources=Source          : linux-2.6.35.3.tar.bz2
Source1         : linux-2.6.35.3-imx_11.09.01.bz2 pkg_dir_name=linux-2.6.35.3 -a 1
patches=
vendor=Freescale Semiconductor
prefix=%{pfx} Cannot generate a patch for config/platform/imx/kernel-2.6.35.spec.in,
the directory: /home/lucid/imx53/11.09.01/ltib/rpm/BUILD/linux-2.6.35.3 -a 1
is missing (maybe you haven't built it with -m scbuild ?)
traceback:
main::f_patchmerge:1111
  main:560 Exiting on error or interrupt

Changing the %setup line in config/platform/imx/kernel-2.6.35.spec.in to read:

%setup -a 1 -n %{buildsubdir}

appears to fix this problem.

Outcomes