Skip to contentSkip to conversation

headers_install.sh linux/ioport.h

Buildroot Michael Schweikart 2 participants 2 messages Nov 14, 2015 – Nov 16, 2015

lore
Share & tools
lore
#0 lore raw

Hi,

i have build a buildroot image with toolchain support and can build for example a application with use of the ncurses library inside eclipse. Now I need to have the possibility to access the ISA Bus. Therefor i need the linux/ioport.h header file of the kernel, but the include File is not copied into the directory "output/host/usr/i586-buildroot-linux-gnu". Why is this include file not copied. Is there a Kernel config option which i have to set correctly?

best regards

#1 lore raw
Quoted 9 lines · Michael Schweikart

Hi,

i have build a buildroot image with toolchain support and can build for example a application with use of the ncurses library inside eclipse.
Now I need to have the possibility to access the ISA Bus. Therefor i need the linux/ioport.h header file of the kernel, but the include File
is not copied into the directory "output/host/usr/i586-buildroot-linux-gnu". Why is this include file not copied. Is there a Kernel config option which i have to set correctly?

ioport.h is a kernel header, not a userspace header, so it is not installed in
<sysroot>/usr/include/linux by linux's make headers_install.

If you would have this header file, I doubt you'd be able to do much with it
anyway from userspace since the functions defined in it are not exported and the macro definitions are as far as I know also not applicable to anything visible in userspace.

But perhaps you want to build a kernel module? In that case, you also have to
build the kernel using buildroot and use the kernel-module infrastructure [1].

Regards,
Arnout

[1] http://buildroot.org/manual.html#kernel-module-tutorial

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF