Building The Grub Os Loader [Linux Build Environment Only] - Intel Quark SoC X1000 User Manual

Board support package bsp, build and software
Hide thumbs Also See for Quark SoC X1000:
Table of Contents

Advertisement

Building the GRUB OS loader [Linux build environment only]

5
Building the GRUB OS loader
[Linux build environment only]
Note: GRUB is provided in two places: inside the meta-clanton Yocto BSP or independently.
If you will run Yocto, skip this section and use the file output by Yocto in this
directory: yocto_build/tmp/deploy/images/grub.efi
If you are only interested in building a Flash image without Linux and not in using
Yocto, then proceed through this section.
Tip:
If you want to build a Flash image without a Yocto Linux system (for example,
because you plan to boot a larger Yocto Linux system from an SD card or USB stick),
you should modify the appropriate layout.conf file and delete the sections for
bzImage and core-image-minimal-initramfs-clanton.cpio.gz.
Dependencies:
This GRUB build requires the 32 bit gnu-efi library which is included with many Linux
distributions. Alternatively, you can download the latest version from:
http://sourceforge.net/projects/gnu-efi/files
Unpack and compile the gnu-efi library using the commands:
# tar -xvf gnu-efi*
# cd gnu-efi*/gnuefi
# make ARCH="ia32"
# cd -
To build GRUB, first open a new terminal session, extract the grub package, and
run the gitsetup.py script. The script downloads all the upstream code required for
grub and applies the patch.
Note: If you are not using Debian and had to manually install gnu-efi in a non-system
location, then you must point GNUEFI_LIBDIR at the location where gnu-efi was
compiled or installed.
Order Number: 329687-007US
GCC (tested with version 4.3.4 and 4.6.3, and libc6-dev-i386)
gnu-efi library (tested with version >= 3.0)
GNU Make
Autotools (autoconf and libtool)
Python 2.6 or higher
git
gcc-multilib
texinfo
Intel
®
Quark™ SoC X1000
BSP Build and Software User Guide
13

Advertisement

Table of Contents
loading

Table of Contents