mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [Q]Adding src files to 2.6.18 kernel and build failure query
@ 2007-09-10 16:05 pradeep singh rautela
  2007-09-10 16:15 ` Jan Engelhardt
  2007-09-10 16:38 ` Sam Ravnborg
  0 siblings, 2 replies; 6+ messages in thread
From: pradeep singh rautela @ 2007-09-10 16:05 UTC (permalink / raw)
  To: linux-kernel

Hi,

I am facing some problem understanding and using the kernel Kbuild
system. I tried googling but not much of help.

Thanks to a good kbuild documentation in the tree. It looks like $(LD)
-r is not able to do what it is supposed to do. May be i am doing
something wrong?

here is a brief summary of what i am doing -

I added some .c files to a new dir under net/foo/ .
Added corresponding .h files to a new dir under include/foo/

Create a Kconfig and Makefile in net/foo/ directory.
Added corresponding entries to Makefile and Kconfig in the net/ dir.

I happily executed a make with a beaming face after selecting the foo
option after doing a
$make menuconfig.

To my surprise i got this error :-

make[1]: *** No rule to make target `arch/i386/kernel/vmlinux.lds',
needed by `__build'.  Stop

So , here is the question in short...

What do i need to change and where to make sure this thing vanishes
away and kernel compiles as usual like it always did earlier?

Any pointers?
PS:- I am not subscribed to the LKML,please CC me while replying to the list.

thanks
--pradeep

--
pradeep singh rautela

"question = ( to ) ? be : ! be;"
                -- Wm. Shakespeare

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Q]Adding src files to 2.6.18 kernel and build failure query
  2007-09-10 16:05 [Q]Adding src files to 2.6.18 kernel and build failure query pradeep singh rautela
@ 2007-09-10 16:15 ` Jan Engelhardt
  2007-09-10 16:38 ` Sam Ravnborg
  1 sibling, 0 replies; 6+ messages in thread
From: Jan Engelhardt @ 2007-09-10 16:15 UTC (permalink / raw)
  To: pradeep singh rautela; +Cc: linux-kernel


On Sep 10 2007 21:35, pradeep singh rautela wrote:
>
>So , here is the question in short...
>
>What do i need to change and where to make sure this thing vanishes
>away and kernel compiles as usual like it always did earlier?

Perhaps post a patch that demonstrates the problem in short.

>Any pointers?

void *.

>pradeep singh rautela
>
>"question = ( to ) ? be : ! be;"
>                -- Wm. Shakespeare

More like
	$? = (${"2b"} || !${"2b"});

since : does not mean "or", but "else".


	Jan
-- 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Q]Adding src files to 2.6.18 kernel and build failure query
  2007-09-10 16:05 [Q]Adding src files to 2.6.18 kernel and build failure query pradeep singh rautela
  2007-09-10 16:15 ` Jan Engelhardt
@ 2007-09-10 16:38 ` Sam Ravnborg
  2007-09-11  5:47   ` pradeep singh rautela
  1 sibling, 1 reply; 6+ messages in thread
From: Sam Ravnborg @ 2007-09-10 16:38 UTC (permalink / raw)
  To: pradeep singh rautela; +Cc: linux-kernel

On Mon, Sep 10, 2007 at 09:35:52PM +0530, pradeep singh rautela wrote:
> Hi,
> 
> I am facing some problem understanding and using the kernel Kbuild
> system. I tried googling but not much of help.
> 
> Thanks to a good kbuild documentation in the tree. It looks like $(LD)
> -r is not able to do what it is supposed to do. May be i am doing
> something wrong?
> 
> here is a brief summary of what i am doing -
> 
> I added some .c files to a new dir under net/foo/ .
> Added corresponding .h files to a new dir under include/foo/
> 
> Create a Kconfig and Makefile in net/foo/ directory.
> Added corresponding entries to Makefile and Kconfig in the net/ dir.
> 
> I happily executed a make with a beaming face after selecting the foo
> option after doing a
> $make menuconfig.
> 
> To my surprise i got this error :-
> 
> make[1]: *** No rule to make target `arch/i386/kernel/vmlinux.lds',
> needed by `__build'.  Stop

Did the kernel build before you started adding your stuff?
It looks like you broke something non-obvious when adding your stuff since the
above failure should not happen just by adding a new directory under net/

	Sam

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Q]Adding src files to 2.6.18 kernel and build failure query
  2007-09-10 16:38 ` Sam Ravnborg
@ 2007-09-11  5:47   ` pradeep singh rautela
  2007-09-11  6:19     ` Sam Ravnborg
  0 siblings, 1 reply; 6+ messages in thread
From: pradeep singh rautela @ 2007-09-11  5:47 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: linux-kernel

On 9/10/07, Sam Ravnborg <sam@ravnborg.org> wrote:
[...]
> > I added some .c files to a new dir under net/foo/ .
> > Added corresponding .h files to a new dir under include/foo/
> >
> > Create a Kconfig and Makefile in net/foo/ directory.
> > Added corresponding entries to Makefile and Kconfig in the net/ dir.
> >
> > I happily executed a make with a beaming face after selecting the foo
> > option after doing a
> > $make menuconfig.
> >
> > To my surprise i got this error :-
> >
> > make[1]: *** No rule to make target `arch/i386/kernel/vmlinux.lds',
> > needed by `__build'.  Stop
>
> Did the kernel build before you started adding your stuff?
> It looks like you broke something non-obvious when adding your stuff since the
> above failure should not happen just by adding a new directory under net/

Went home and tried again. It builds fine in git repo, but again
whenever i make an archive using git-archive --format=tar
--prefix=linux-2.6.18/ HEAD | bzip2 > linux-2.6.18.tar.bz2 , i get the
problem with this bzipped tree.

I removed .gitignore file from the my git repo and added manually
rules to .git/info/exclude instead. This did the trick and
git-archiv'ing did not result in a broken bzipped tree.

Perhaps i did something silly or may be something to do with git. ??

Thanks for the hint Sam.
--pradeep
--
pradeep singh rautela

"question = ( to ) ? be : ! be;"
                -- Wm. Shakespeare

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Q]Adding src files to 2.6.18 kernel and build failure query
  2007-09-11  5:47   ` pradeep singh rautela
@ 2007-09-11  6:19     ` Sam Ravnborg
  2007-09-11  6:23       ` pradeep singh rautela
  0 siblings, 1 reply; 6+ messages in thread
From: Sam Ravnborg @ 2007-09-11  6:19 UTC (permalink / raw)
  To: pradeep singh rautela; +Cc: linux-kernel

On Tue, Sep 11, 2007 at 11:17:48AM +0530, pradeep singh rautela wrote:
> On 9/10/07, Sam Ravnborg <sam@ravnborg.org> wrote:
> [...]
> > > I added some .c files to a new dir under net/foo/ .
> > > Added corresponding .h files to a new dir under include/foo/
> > >
> > > Create a Kconfig and Makefile in net/foo/ directory.
> > > Added corresponding entries to Makefile and Kconfig in the net/ dir.
> > >
> > > I happily executed a make with a beaming face after selecting the foo
> > > option after doing a
> > > $make menuconfig.
> > >
> > > To my surprise i got this error :-
> > >
> > > make[1]: *** No rule to make target `arch/i386/kernel/vmlinux.lds',
> > > needed by `__build'.  Stop
> >
> > Did the kernel build before you started adding your stuff?
> > It looks like you broke something non-obvious when adding your stuff since the
> > above failure should not happen just by adding a new directory under net/
> 
> Went home and tried again. It builds fine in git repo, but again
> whenever i make an archive using git-archive --format=tar
> --prefix=linux-2.6.18/ HEAD | bzip2 > linux-2.6.18.tar.bz2 , i get the
> problem with this bzipped tree.
> 
> I removed .gitignore file from the my git repo and added manually
> rules to .git/info/exclude instead. This did the trick and
> git-archiv'ing did not result in a broken bzipped tree.
> 
> Perhaps i did something silly or may be something to do with git. ??

You where hit by a problem in the top-level .gitignore.
See commit: eaf729c8a8bfc9c7a5ff5659e3b2584bf2ef22e1

Use: git show eaf729c8a8bfc9c7a5ff5659e3b2584bf2ef22e1

This commit is most likely not in your tree.
It just do:
diff --git a/.gitignore b/.gitignore
index 8d15830..a232295 100644
--- a/.gitignore
+++ b/.gitignore
@@ -22,6 +22,7 @@
 tags
 TAGS
 vmlinux*
+!vmlinux.lds.S
 System.map
 Module.symvers


	Sam

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Q]Adding src files to 2.6.18 kernel and build failure query
  2007-09-11  6:19     ` Sam Ravnborg
@ 2007-09-11  6:23       ` pradeep singh rautela
  0 siblings, 0 replies; 6+ messages in thread
From: pradeep singh rautela @ 2007-09-11  6:23 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: linux-kernel

Hi Sam,

found the commit in my fresh 2.6 git repo.
Thanks a lot for help.

Best Regards
--pradeep
On 9/11/07, Sam Ravnborg <sam@ravnborg.org> wrote:
> On Tue, Sep 11, 2007 at 11:17:48AM +0530, pradeep singh rautela wrote:
> > On 9/10/07, Sam Ravnborg <sam@ravnborg.org> wrote:
> > [...]
> > > > I added some .c files to a new dir under net/foo/ .
> > > > Added corresponding .h files to a new dir under include/foo/
> > > >
> > > > Create a Kconfig and Makefile in net/foo/ directory.
> > > > Added corresponding entries to Makefile and Kconfig in the net/ dir.
> > > >
> > > > I happily executed a make with a beaming face after selecting the foo
> > > > option after doing a
> > > > $make menuconfig.
> > > >
> > > > To my surprise i got this error :-
> > > >
> > > > make[1]: *** No rule to make target `arch/i386/kernel/vmlinux.lds',
> > > > needed by `__build'.  Stop
> > >
> > > Did the kernel build before you started adding your stuff?
> > > It looks like you broke something non-obvious when adding your stuff since the
> > > above failure should not happen just by adding a new directory under net/
> >
> > Went home and tried again. It builds fine in git repo, but again
> > whenever i make an archive using git-archive --format=tar
> > --prefix=linux-2.6.18/ HEAD | bzip2 > linux-2.6.18.tar.bz2 , i get the
> > problem with this bzipped tree.
> >
> > I removed .gitignore file from the my git repo and added manually
> > rules to .git/info/exclude instead. This did the trick and
> > git-archiv'ing did not result in a broken bzipped tree.
> >
> > Perhaps i did something silly or may be something to do with git. ??
>
> You where hit by a problem in the top-level .gitignore.
> See commit: eaf729c8a8bfc9c7a5ff5659e3b2584bf2ef22e1
>
> Use: git show eaf729c8a8bfc9c7a5ff5659e3b2584bf2ef22e1
>
> This commit is most likely not in your tree.
> It just do:
> diff --git a/.gitignore b/.gitignore
> index 8d15830..a232295 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -22,6 +22,7 @@
>  tags
>  TAGS
>  vmlinux*
> +!vmlinux.lds.S
>  System.map
>  Module.symvers
>
>
>         Sam
>


-- 
--
pradeep singh rautela

"question = ( to ) ? be : ! be;"
                -- Wm. Shakespeare

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-09-11  6:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-10 16:05 [Q]Adding src files to 2.6.18 kernel and build failure query pradeep singh rautela
2007-09-10 16:15 ` Jan Engelhardt
2007-09-10 16:38 ` Sam Ravnborg
2007-09-11  5:47   ` pradeep singh rautela
2007-09-11  6:19     ` Sam Ravnborg
2007-09-11  6:23       ` pradeep singh rautela

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome