diff options
author | Walter Goossens <walter.goossens@axon.tv> | 2009-11-22 17:32:10 +0100 |
---|---|---|
committer | Leon Woestenberg <leon@sidebranch.com> | 2009-11-22 17:42:31 +0100 |
commit | dc96d85364cc7c02ca622f9319fdac26d56248f8 (patch) | |
tree | 4cfcb361454f4bbbc27fd096bc0e5707a098852c /recipes/linux/linux-nios2_2.6.28.bb | |
parent | afbf458a1ad2e17638f3c0ffd2a1de418cee07ce (diff) | |
download | openembedded-dc96d85364cc7c02ca622f9319fdac26d56248f8.tar.gz |
{binutils,gcc,linux-libc-headers,uclibc,elf2flt}-nios2: Toolchain.
This adds the toolchain bits, plus a linux kernel for the nios2
architecture.
The NIOS2 toolchain is not upstream but is from the nioswiki
project.
All toolchain bits have version "-nios2-*" and should not collide
with the existing toolchains of other architectures.
Signed-off-by: Leon Woestenberg <leon@sidebranch.com>
Diffstat (limited to 'recipes/linux/linux-nios2_2.6.28.bb')
-rw-r--r-- | recipes/linux/linux-nios2_2.6.28.bb | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes/linux/linux-nios2_2.6.28.bb b/recipes/linux/linux-nios2_2.6.28.bb new file mode 100644 index 0000000000..031f4f5592 --- /dev/null +++ b/recipes/linux/linux-nios2_2.6.28.bb @@ -0,0 +1,36 @@ +INHIBIT_DEFAULT_DEPS = "1" +DEPENDS += "unifdef-native" +PR = "r3" + +FILESPATH = "${FILE_DIRNAME}/${PN}/${PV}" + +#SRC_URI = "git://sopc.et.ntust.edu.tw/git/linux-2.6.git;branch=test-nios2;tags=3146b39c185f8a436d430132457e84fa1d8f8208 \ +SRC_URI = "http://127.0.0.1/linux-nios2-2.6.28-git.tbz \ + file://procinfo.h \ + file://system.ptf" +SRC_URI += "file://defconfig" + +S = "${WORKDIR}/linux-2.6" + +COMPATIBLE_HOST = 'nios2.*-linux.*' +COMPATIBLE_MACHINE = '(nios2|sygeg1)' + +inherit kernel + +ARCH = "nios2" +KERNEL_IMAGETYPE = "zImage" + + +do_configure() { + rm -f ${S}/.config + + if [ ! -e ${WORKDIR}/defconfig ]; then + die "No default configuration for ${MACHINE} available." + fi + + echo "CONFIG_INITRAMFS_SOURCE=\"${DEPLOY_DIR_IMAGE}/initramfs_root.cpio\"" >> ${S}/.config + sed -e '/CONFIG_INITRAMFS_SOURCE/d' '${WORKDIR}/defconfig' >>'${S}/.config' + + oe_runmake hwselect SYSPTF=../system.ptf CPU_SELECTION=1 MEM_SELECTION=2 ARCH=$ARCH + yes '' | oe_runmake oldconfig +} |