Bug 3007

Summary: kexec doesn't build: Missing regdef.h file
Product: buildroot Reporter: Andy Kennedy <andy.kennedy>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: minor CC: andy.kennedy, buildroot
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Host: Target:
Build:

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