What follows are the steps that I undertook. They lead to an error
message. Now I wonder: *Did I do something wrong, or did Alcatel not
provide the proper source code?*

Prepared ARM cross compiler:

    $ git clone https://android.googlesource.com/platform/prebuilt -b \
    ics-plus-aosp
    $ export \
    PATH="$PWD/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin:$PATH"

Installed source provided by Alcatel:

    $ wget \
    http://sourceforge.net/projects/alcatel/files/OT_FF_4019X_20150408.
    tar.xz
    $ tar xfJ OT_FF_4019X_20150408.tar.xz
    $ cd OT_4019X/kernel

Downloaded kernel configuration from device:

    $ adb pull /proc/config.gz

Built for ARM:

    $ gunzip -c config.gz >.config
    $ make oldnoconfig ARCH=arm
    $ make ARCH=arm CROSS_COMPILE=arm-eabi- zImage
    [...]
      CC      arch/arm/mach-msm/smd_init_plat.o
      arch/arm/mach-msm/smd_init_plat.c:24:25: error: smd_private.h: No
      such file or directory
      arch/arm/mach-msm/smd_init_plat.c:190: warning:
      'struct smd_irq_config' declared inside parameter list
      error, forbidden warning: smd_init_plat.c:190
      make[1]: *** [arch/arm/mach-msm/smd_init_plat.o] Error 1
      make: *** [arch/arm/mach-msm] Error 2

I can work around that by adding `$PWD/arch/arm/mach-msm` to
`$C_INCLUDE_PATH`, but it doesn't feel right, and anyhow then there are
more error messages.
_______________________________________________
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to