Snider, Tim
2007-Feb-01 15:58 UTC
[Lustre-devel] patch for embedded cross compile 1.5.95 & 2.6.18 vanilla kernel
The attached patch file allows cross compilation & installation of 1.5.95 using a 2.6.18 vanilla kernel. Ultimately very few changes were required. Configure line to cross compile and install in the target Linux directory. sh configure --host=armv5l-linux --target=armv5l-linux --with-linux=/home/tsnider/linux-2.6.18.3 --disable-liblustre --prefix=/home/tsnider/linux-2.6.18.3 --exec-prefix=/home/tsnider/linux-2.6.18.3 Synopsis of changes in patch file: lustre-1.5.95/configure: pay attention to the --prefix and --exec-prefix specifications. This is the change that allows cross compiles / installs to occur correctly. lustre-1.5.95/lustre/utils/llverfs.c && lustre-1.5.95/lustre/utils/mkfs_lustre.c change return value of getopt_long call from long to char. Enables correct parameter scanning. These have already been incorporated. There were a few compiler complaints. I don''t know if they were due to my unique build environment / kernel version or if these are ''real'' problems. They''re included for reference. lustre-1.5.95/home/tsnider/super.cPatch: Create a super.cPatch file that adds include of utsname.h. lustre-1.5.95/lustre/include/linux/lustre_types.h & lustre-1.5.95/lustre/include/lustre/lustre_idl.h Comment out include <linux/lustre_types.h> lustre-1.5.95/lustre/kernel_patches/patches/ext3-utsname-2.6.18-vanilla. patch add patch for super.c linux-2.6.18/fs/ext3/super.c add include of utsName.h Take them (or not) as you desire. Timothy Snider Storage Architect Strategic Planning, Technology and Architecture LSI Logic Corporation 3718 North Rock Road Wichita, KS 67226 (316) 636-8736 tim.snider@lsi.com <mailto:tim.snider@lsi.com> -------------- next part -------------- A non-text attachment was scrubbed... Name: embedded.1.5.95.patch Type: application/octet-stream Size: 4332 bytes Desc: embedded.1.5.95.patch Url : http://mail.clusterfs.com/pipermail/lustre-devel/attachments/20070201/860e2c4f/embedded.1.5.95.obj