| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | Re: [PATCH -queue 2/2] MIPS: Cleanup the debugging of compressed kernel support |
| From: | Wu Zhangjin <wuzhangjin@gmail.com> |
| Date: | Tue, 26 Jan 2010 21:46:39 +0800 |
| Cc: | linux-mips@linux-mips.org |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:reply-to:to:cc :in-reply-to:references:content-type:organization:date:message-id :mime-version:x-mailer:content-transfer-encoding; bh=jVTT1+AMdPAUuF58tflBlvz9+KQd1AmvnO8taqgZkVY=; b=Com8AmxOcfIufRmzG02UnlYSeHCIQME9wAJbJJdHVzfhKJBKpExwgUxX0wcR8VO8Ba OcesCcq7hhgUR+k+y2iZydU/38JfEfzhAcChWloko0szKa1Q6xwlrpIUI91K1HFafwdD POHDpj/lR/kmvk6Beb7owU5e0b0GfildtrvqI= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:reply-to:to:cc:in-reply-to:references:content-type :organization:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=h6in0dZUmEdMXiON+ux++3KTFAhspcnXYmymcJ1Bqwi8Too/iKXbt+BW+Q8AltvSDQ wNi2n2b/ipipvwPWPq8sms28YVgSJcseurtVQ2f6w151X7sGl/XJXtDPCInoRPmh+m68 ZUOpKFYOt4f1VPlGyY7X2+m5GjXOZ6im3LieM= |
| In-reply-to: | <20100126105155.GC30098@linux-mips.org> |
| Organization: | DSLab, Lanzhou University, China |
| References: | <979633248ed16f2724296fd90f4b824f601809e1.1264496568.git.wuzhangjin@gmail.com> <cbf30435132e35087c6c6b8ca172c7d9cb0cbc37.1264496568.git.wuzhangjin@gmail.com> <20100126105155.GC30098@linux-mips.org> |
| Reply-to: | wuzhangjin@gmail.com |
| Sender: | linux-mips-bounce@linux-mips.org |
On Tue, 2010-01-26 at 11:51 +0100, Ralf Baechle wrote:
[...]
> >
> > +config DEBUG_ZBOOT
> > + bool "Enable compressed kernel support debugging"
> > + depends on SYS_SUPPORTS_ZBOOT_UART16550
>
> This should probably depend on DEBUG_KERNEL also.
>
ok, will add it.
[...]
> > diff --git a/arch/mips/boot/compressed/Makefile
> > b/arch/mips/boot/compressed/Makefile
> > index 91a57a6..68e5db8 100644
> > --- a/arch/mips/boot/compressed/Makefile
> > +++ b/arch/mips/boot/compressed/Makefile
> > @@ -32,7 +32,9 @@ KBUILD_AFLAGS := $(LINUXINCLUDE) $(KBUILD_AFLAGS)
> > -D__ASSEMBLY__ \
> >
> > obj-y := $(obj)/head.o $(obj)/decompress.o $(obj)/dbg.o
> >
> > +ifdef CONFIG_DEBUG_ZBOOT
> > obj-$(CONFIG_SYS_SUPPORTS_ZBOOT_UART16550) += $(obj)/uart-16550.o
> > +endif
>
> DEBUG_ZBOOT already depends on SYS_SUPPORTS_ZBOOT_UART16550 so this can be
> simplified into just obj-$(CONFIG_DEBUG_ZBOOT) and no ifdef.
>
Yes, currently, we can simplify it, but the ifdef can make people be
easier to add new debugging supports, for example:
ifdef CONFIG_DEBUG_ZBOOT
obj-$(CONFIG_SYS_SUPPORTS_ZBOOT_UART16550) += $(obj)/uart-16550.o
+obj-$(CONFIG_SYS_SUPPORTS_ZBOOT_UARTXXXX) += $(obj)/uart-xxxx.o
+obj-$(CONFIG_SYS_SUPPORTS_ZBOOT_VGA) += $(obj)/vga.o
endif
otherwise, we need:
obj-$(CONFIG_SYS_SUPPORTS_ZBOOT) += $(obj)/uart-16550.o \
$(obj)/uart-xxxx.o \
$(obj)/vga.o
and then wrap the $(obj)/uart-16550.c, $(obj)/uart-xxxx.c, $(obj)/vga.c
internally with related ifdefs.
So, which method we choose?
Best Regards,
Wu Zhangjin
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] powertv: streamline access to platform device registers, Ralf Baechle |
|---|---|
| Next by Date: | Re: [PATCH] powertv: Fix support for timer interrupts when using >64 external IRQs, Ralf Baechle |
| Previous by Thread: | Re: [PATCH -queue 2/2] MIPS: Cleanup the debugging of compressed kernel support, Ralf Baechle |
| Next by Thread: | Re: [PATCH -queue 1/2] MIPS: Cleanup the Makefile of compressed kernel support, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |