Hi.
I am endeavouring to make a nicely matching toolchain for the kindle touch using cross-tools ng.
http://crosstool-ng.org/#download_and_usage
This is because for some reason - I haven't got to the bottom of - the kernel headers don't "install" as I would expect on the prebuilt Toolchains (linux/eink.h missing for example after installation)
So. I fired up
make ctng-menuconfig.
selected 32bit little endian Cortex A8
GCC 4.5.4
eglibc 2.12
all the settings outlined in
http://www.mobileread.com/forums/sho...6&postcount=17
and pointed it to a custom folder for my kernel /usr/local/src/BUILD_KERNAL_5.1.2/gplrelease
(setup the other stuff to sensible defaults)
I also then saved out the .config file to
~/GIT/k5ctng/toolchain/toolchain-crosstool-ng folder as a custom -kindle named config file for future reference.
.config was from here
~/GIT/k5ctng/output/build/build-toolchain/.config
and then run a
make.
all software is not enabled, nor is busybox etc...
which fails with:
Quote:
[ALL ] make[3]: Leaving directory `~/GIT/k5ctng/output/build/build-toolchain/.build/arm-unknown-linux-gnueabi/build/build-cc-core-pass-1'
[ALL ] `~/GIT/k5ctng/output/build/build-toolchain/.build/arm-unknown-linux-gnueabi/buildtools/bin/arm-unknown-linux-gnueabi-cc' -> `arm-unknown-linux-gnueabi-gcc'
[INFO ] Installing pass-1 core C compiler: done in 73.02s (at 05:25)
[INFO ] ================================================== ===============
[INFO ] Installing kernel headers
[EXTRA] Installing kernel headers
[ALL ] make[3]: Entering directory `/usr/local/src/BUILD_KERNAL_5.1.2/gplrelease'
[ALL ] CHK include/linux/version.h
[ALL ] UPD include/linux/version.h
[ALL ] HOSTCC scripts/basic/fixdep
[ALL ] HOSTCC scripts/basic/docproc
[ALL ] HOSTCC scripts/basic/hash
[ALL ] HOSTCC scripts/unifdef
[ALL ] REMOVE cdev.h
[ALL ] INSTALL include/linux (374 files)
[ALL ] make[3]: Leaving directory `/usr/local/src/BUILD_KERNAL_5.1.2/gplrelease'
[EXTRA] Checking installed headers
[ALL ] make[3]: Entering directory `/usr/local/src/BUILD_KERNAL_5.1.2/gplrelease'
[ALL ] CHK include/linux/version.h
[ALL ] make[5]: `scripts/unifdef' is up to date.
[ALL ] CHECK include/linux (374 files)
[ALL ] ~/GIT/k5ctng/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/include/linux/fsl_devices.h:23: included file 'linux/cdev.h' is not exported
[ALL ] ~/GIT/k5ctng/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/include/linux/mxc_pf.h:53: found __[us]{8,16,32,64} type without #include <linux/types.h>
|
the file is indeed not exported (pictured) to
~GIT/k5ctng/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/include/linux
it (cdev.h)
does exist in the kernel sources however.
so I guess my question is in order to fix such an error am I to use an #ifdef something ? :bookworm:
or have I foofed in the config? :book2: is it not being pulled because of some slight versioning issue. am digging around for clues but all help accepted.
further details available upon request. Thanks : )