All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH] linux-nios2-2.6.28: Linux kernel for nios2 machines.
Date: Mon, 7 Dec 2009 09:26:48 +0100	[thread overview]
Message-ID: <200912070926.49072.marcin@juszkiewicz.com.pl> (raw)
In-Reply-To: <1260139496-21442-18-git-send-email-leon@sidebranch.com>

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@jabber.org
Website:  http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz





  parent reply	other threads:[~2009-12-07  8:28 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-06 22:44 [PATCH] {insane, kernel-arch, site-info}.bbclass: New architecture nios2 Leon Woestenberg
2009-12-06 22:44 ` [PATCH] nios2.conf: " Leon Woestenberg
2009-12-06 22:44   ` [PATCH] cyclone3_starter.conf: New machine/board for " Leon Woestenberg
2009-12-06 22:44     ` [PATCH] site/nios2-linux-uclibc: Configure site file for MMU-less nios2 Leon Woestenberg
2009-12-06 22:44       ` [PATCH] binutils-cross.inc: Stage libiberty.h for elf2flt linker wrapper Leon Woestenberg
2009-12-06 22:44         ` [PATCH] binutils{,-cross}_nios2-2.15.bb: binutils for nios2 Leon Woestenberg
2009-12-06 22:44           ` [PATCH] elf2flt-cross_nios2-git.bb: elf2flt-cross " Leon Woestenberg
2009-12-06 22:44             ` [PATCH] gcc-configure-common.inc: Introduce SHARED_LIBRARIES Leon Woestenberg
2009-12-06 22:44               ` [PATCH] gcc{, -cross}{, -intermediate}_nios2-3.4.6.bb: GCC for nios2 Leon Woestenberg
2009-12-06 22:44                 ` [PATCH] uclibc{, -cross}{, -initial}_nios2-0.9.2{7, 9}.bb: nios2 fork Leon Woestenberg
2009-12-06 22:44                   ` [PATCH] angstrom-uclibc.inc: Exempt nios2 from GNU hash style Leon Woestenberg
2009-12-06 22:44                     ` [PATCH] angstrom-2008.1.conf: Use ?= on PREFERRED_VERSION_linux-libc-headers Leon Woestenberg
2009-12-06 22:44                       ` [PATCH] sane-srcrevs.inc: Add PREFERRED_VERSION_linux-libc-headers for nios2 Leon Woestenberg
2009-12-06 22:44                         ` [PATCH] angstrom-uclibc.inc: Exempt nios2 architecture from GNU hash style Leon Woestenberg
2009-12-06 22:44                           ` [PATCH] linux-libc-headers_nios2-2.6.28: nios2 fork Leon Woestenberg
2009-12-06 22:44                             ` [PATCH] uclibc-initial-nios2-0.9.29: For nios2, go to 0.9.29 Leon Woestenberg
2009-12-06 22:44                               ` [PATCH] linux-libc-headers_nios2-2.6.28.bb: Missed the .bb file earlier Leon Woestenberg
2009-12-06 22:44                                 ` [PATCH] linux-nios2-2.6.28: Linux kernel for nios2 machines Leon Woestenberg
2009-12-06 22:44                                   ` [PATCH] gnu-config-20050701: Add nios2 system support Leon Woestenberg
2009-12-06 22:44                                     ` [PATCH] angstrom-2008.1.conf: Conditionally set linux-libc-header version Leon Woestenberg
2009-12-06 22:44                                       ` [PATCH] angstrom-2008.1.conf: Hard-code the nios2 version for linux-libc-headers Leon Woestenberg
2009-12-07  8:26                                   ` Marcin Juszkiewicz [this message]
2009-12-07 10:43                             ` [PATCH] linux-libc-headers_nios2-2.6.28: nios2 fork Koen Kooi
2009-12-07 10:42                         ` [PATCH] sane-srcrevs.inc: Add PREFERRED_VERSION_linux-libc-headers for nios2 Koen Kooi
2009-12-11 21:32                           ` Leon Woestenberg
2009-12-07 10:41                       ` [PATCH] angstrom-2008.1.conf: Use ?= on PREFERRED_VERSION_linux-libc-headers Koen Kooi
2009-12-11 22:58                         ` Leon Woestenberg
2009-12-07 10:39                   ` [PATCH] uclibc{, -cross}{, -initial}_nios2-0.9.2{7, 9}.bb: nios2 fork Koen Kooi
2009-12-07 15:29                     ` Leon Woestenberg
2009-12-07 15:32                     ` Leon Woestenberg
2009-12-07 10:38                 ` [PATCH] gcc{, -cross}{, -intermediate}_nios2-3.4.6.bb: GCC for nios2 Koen Kooi
2009-12-11 21:44                   ` Leon Woestenberg
2009-12-07 10:39           ` [PATCH] binutils{, -cross}_nios2-2.15.bb: binutils " Koen Kooi
2009-12-11 21:44             ` Leon Woestenberg
2009-12-07  8:21     ` [PATCH] cyclone3_starter.conf: New machine/board for architecture nios2 Marcin Juszkiewicz
2009-12-07 10:26       ` Leon Woestenberg
2009-12-07 10:36   ` [PATCH] nios2.conf: New " Koen Kooi
2009-12-11 23:16     ` Leon Woestenberg
2010-01-24  3:54 ` [PATCH] {insane, kernel-arch, site-info}.bbclass: " Holger Hans Peter Freyther

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200912070926.49072.marcin@juszkiewicz.com.pl \
    --to=marcin@juszkiewicz.com.pl \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.