Re: Kernel generates vmImage instead of zImage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks to all but my special thanks go to Robert. I've edited linux-2.6/arch/nios2/Makefile and get it work !

Cheers,
Cem


2013/4/4 Robert P. J. Day <rpjday@xxxxxxxxxxxxxx>
On Thu, 4 Apr 2013, Augusto Mecking Caringi wrote:

> On Thu, Apr 4, 2013 at 7:02 AM, Onur Cem Çelebi <occelebi@xxxxxxxxx> wrote:
> >
> > Output is:
> >
> > root@F15:~/ruclinux/uClinux-dist# make zImage
> > make: *** No rule to make target `zImage'.  Stop.
>
> Maybe, this is the answer:
>
> "Though zImage is a valid Makefile target for all the architectures we
> discussed in depth in Chapter 3, there are other Linux architectures
> for which it isn't valid."
>
> http://books.google.com.br/books?id=xnFdWfJAK9wC&pg=PT188&lpg=PT188&dq=zImage+is+a+valid+Makefile+target+for+all+the+architectures+we+discussed+in&source=bl&ots=GFTLM7_665&sig=77Oi5e_TmkXME_5du3H5GdqPw4c&hl=pt-BR&sa=X&ei=xZ5dUeqqIY3x0wH4x4D4Cw&ved=0CD0Q6AEwAQ#v=onepage&q&f=false

  the set of buildable targets is typically defined by the
arch-specific makefile.  if you look in the top-level Makefile of the
kernel source tree, you'll see a target for building the generic
"vmlinux" kernel image, but little more.

  you need to dig down into the arch-specific directory to see
additional targets.  for example, if you take a look at
arch/arm/boot/Makefile, you'll see:

targets := Image zImage xipImage bootpImage uImage

ifeq ($(CONFIG_XIP_KERNEL),y)

$(obj)/xipImage: vmlinux FORCE
        $(call if_changed,objcopy)
        @$(kecho) '  Kernel: $@ is ready (physical address:
$(CONFIG_XIP_PHYS_ADDR))'

$(obj)/Image $(obj)/zImage: FORCE
        @echo 'Kernel configured for XIP (CONFIG_XIP_KERNEL=y)'
        @echo 'Only the xipImage target is available in this case'
        @false

else

$(obj)/xipImage: FORCE
        @echo 'Kernel not configured for XIP (CONFIG_XIP_KERNEL!=y)'
        @false
... etc etc ...

  in short, all(?) architectures expect a starting point of a vmlinux,
and they will define additional targets as they see fit.

rday

--

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux