Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle generated header code in Linux #16

Open
ckaestne opened this issue Mar 11, 2013 · 0 comments
Open

Handle generated header code in Linux #16

ckaestne opened this issue Mar 11, 2013 · 0 comments

Comments

@ckaestne
Copy link
Owner

in /Kbuild there is a generation process for generating include/generated/bounds.h (and others).

The file is generated by Kbuild and sets two macros MAX_NR_ZONES and NR_PAGEFLAGS (at least the latter of which is used in an #if #error combination). The values depend on other features and are computed based on the position of a name in an enum:

__NR_PAGEFLAGS
include/linux/page-flags.h

__MAX_NR_ZONES
include/linux/mmzone.h

we should probably wrap the values and create our own header files here

for now, just generate these headers with ARCH=i368 to avoid the #error during preprocessing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant