[oe] [PATCH] linux-nios2-2.6.28: Linux kernel for nios2 machines.

Marcin Juszkiewicz marcin at juszkiewicz.com.pl
Mon Dec 7 08:26:48 UTC 2009


Dnia niedziela, 6 grudnia 2009 o 23:44:53 Leon Woestenberg napisał(a):

> 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 0000000..031f4f5
> --- /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}"

drop that

> +
> +#SRC_URI =
>  "git://sopc.et.ntust.edu.tw/git/linux-2.6.git;branch=test-nios2;tags=3146b
> 39c185f8a436d430132457e84fa1d8f8208 
> \ +SRC_URI =
>  "http://127.0.0.1/linux-nios2-2.6.28-git.tbz \

Can you put it online so other people can fetch and build it? I know that 
hardware is yours but think autobuilders or weird build tests.

> +           file://procinfo.h \
> +           file://system.ptf"
> +SRC_URI += "file://defconfig"
> +
> +S = "${WORKDIR}/linux-2.6"
> +
> +COMPATIBLE_HOST = 'nios2.*-linux.*'
> +COMPATIBLE_MACHINE = '(nios2|sygeg1)'

So which kernel supports "cyclone3-starter" machine? And you can use 
COMPATIBLE_MACHINE without COMPATIBLE_HOST.

> +inherit kernel

Why not "require linux.inc"?

> +ARCH = "nios2"

Was not that set in machine config?

> +KERNEL_IMAGETYPE = "zImage"

This is default - drop.
> +
> +do_configure() {

> +        rm -f ${S}/.config
> +
> +        if [ ! -e ${WORKDIR}/defconfig ]; then
> +                die "No default configuration for ${MACHINE} available."
> +        fi

This part is already in linux.inc - use it?

> +	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
> +}
> 


Regards, 
-- 
JID:      hrw at jabber.org
Website:  http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz






More information about the Openembedded-devel mailing list