Bug 3007 - kexec doesn't build: Missing regdef.h file
Summary: kexec doesn't build: Missing regdef.h file
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: Other Linux
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-22 23:20 UTC by Andy Kennedy
Modified: 2011-01-14 22:09 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Kennedy 2010-12-22 23:20:23 UTC
Target is mips-32r2

kexec/arch/mips/mips-setup-simple.S:17:20: fatal error: regdef.h: No such file or directory
compilation terminated.


Simple fix is to copy the file from
output/toolchain/uClibc-0.9.31/libc/sysdeps/linux/mips/sys/regdef.h

to:
output/build/kexec-2.0.1/kexec/arch/mips/include
Comment 1 Andy Kennedy 2010-12-28 22:59:17 UTC
After further playing, I have found that for kexec to build properly, one needs to bring the regdef.h file from the Linux Kernel (in the case of mips that would be:  arch/mips/include/asm/regdef.h)  There are some interesting ifdef's around sections of the one that is under the toolchain included files.  There are about 3 different versions of this file -- the one in the kernel source is the only one I can make work with kexec.

Andy
Comment 2 Peter Korsgaard 2011-01-14 22:09:09 UTC
Fixed by kexec version bump in git, thanks