With gingerbread, I could compile the kernel as part of the product
build by adding this to AndroidBoard.mk:
#----------------------------------------------------------------------
# Compile Linux Kernel
#----------------------------------------------------------------------
ifeq ($(KERNEL_DEFCONFIG),)
KERNEL_DEFCONFIG := thunderc-sprint-perf_defconfig
endif
include kernel/AndroidKernel.mk
file := $(INSTALLED_KERNEL_TARGET)
ALL_PREBUILT += $(file)
$(file) : $(TARGET_PREBUILT_KERNEL) | $(ACP)
$(transform-prebuilt-to-target)
but now with ICS I get this error from adding that code:
============================================
build/core/main.mk:536: *** Some files have been added to
ALL_PREBUILT.
build/core/main.mk:537: *
build/core/main.mk:538: * ALL_PREBUILT is a deprecated mechanism that
build/core/main.mk:539: * should not be used for new files.
build/core/main.mk:540: * As an alternative, use PRODUCT_COPY_FILES in
build/core/main.mk:541: * the appropriate product definition.
build/core/main.mk:542: * build/target/product/core.mk is the product
build/core/main.mk:543: * definition used in all products.
build/core/main.mk:544: *
build/core/main.mk:545: * unexpected oprofile.ko in ALL_PREBUILT
build/core/main.mk:546: *
build/core/main.mk:547: *** ALL_PREBUILT contains unexpected files.
Stop.
I've done my due diligence searching (I hope) but haven't found
mention of this.
Any suggestions?
Check how the kernel is installed with PRODUCT_COPY_FILES in device/samsung/tuna
JBQ
> --
> You received this message because you are subscribed to the "Android Building" mailing list.
> To post to this group, send email to android-...@googlegroups.com
> To unsubscribe from this group, send email to
> android-buildi...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.
Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/samsung/tuna/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
but there's no info on making the system build the kernel as part of
the product build in those makefiles. it uses a prebuilt kernel,
which I'm trying to avoid.
I'm guessing TARGET_PREBUILT_KERNEL needs to be set somehow, since if
that variable is null it copies the prebuilt kernel?
I'm kind of at sea here, because the only device makefiles I've found
which force a kernel build instead of copying a prebuilt kernel are
the qualcomm devices from CAF... and they haven't updated their device
makefiles to handle ICS yet.
You might need to add support for what you're trying to do directly in
the core build system.
JBQ
-Eric
On Mon, Nov 28, 2011 at 1:48 PM, bigsupersquid <0.ura...@gmail.com> wrote:
On Dec 2, 12:25 am, Eric Finseth <eric.fins...@gmail.com> wrote:
> Looks like this is how the CAF folks did it.
>
> https://www.codeaurora.org/gitweb/quic/la/?p=platform/build.git;a=com...
>
> -Eric
>
>
>
>
>
>
>
> On Mon, Nov 28, 2011 at 1:48 PM, bigsupersquid <0.urador...@gmail.com> wrote:
> > So, in device.mk, I see:
>
> > ifeq ($(TARGET_PREBUILT_KERNEL),)
> > LOCAL_KERNEL := device/samsung/tuna/kernel
> > else
> > LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
> > endif
>
> > but there's no info on making the systembuildthekernelas part of
> > the productbuildin those makefiles. it uses a prebuiltkernel,
> > which I'm trying to avoid.
> > I'm guessing TARGET_PREBUILT_KERNEL needs to be set somehow, since if
> > that variable is null it copies the prebuiltkernel?
> > I'm kind of at sea here, because the only device makefiles I've found
> > which force akernelbuildinstead of copying a prebuiltkernelare
> > the qualcomm devices from CAF... and they haven't updated their device
> > makefiles to handleICSyet.
>
> > On Nov 28, 11:58 am, Jean-Baptiste Queru <j...@android.com> wrote:
> >> In a nutshell, ALL_PREBUILT is a private variable of the corebuild
> >> system, and the corebuildsystem now defends itself when random
> >> makefiles modify that specific variable, as that causes confusion down
> >> the line.
>
> >> Check how thekernelis installed with PRODUCT_COPY_FILES in device/samsung/tuna
>
> >> JBQ
>
> >> On Sun, Nov 27, 2011 at 11:25 AM, bigsupersquid <0.urador...@gmail.com> wrote:
> >> > Hi.
> >> > First post here, hopefully not too inept at searching to have missed
> >> > an obvious answer.
>
> >> > With gingerbread, I could compile thekernelas part of the product
> >> >buildby adding this to AndroidBoard.mk:
>
> >> > #----------------------------------------------------------------------
> >> > # Compile LinuxKernel
> >> > #----------------------------------------------------------------------
> >> > ifeq ($(KERNEL_DEFCONFIG),)
> >> > KERNEL_DEFCONFIG := thunderc-sprint-perf_defconfig
> >> > endif
>
> >> > includekernel/AndroidKernel.mk
>
> >> > file := $(INSTALLED_KERNEL_TARGET)
> >> > ALL_PREBUILT += $(file)
> >> > $(file) : $(TARGET_PREBUILT_KERNEL) | $(ACP)
> >> > $(transform-prebuilt-to-target)
>
> >> > but now withICSI get this error from adding that code:
>
> >> > ============================================
> >> >build/core/main.mk:536: *** Some files have been added to
> >> > ALL_PREBUILT.
> >> >build/core/main.mk:537: *
> >> >build/core/main.mk:538: * ALL_PREBUILT is a deprecated mechanism that
> >> >build/core/main.mk:539: * should not be used for new files.
> >> >build/core/main.mk:540: * As an alternative, use PRODUCT_COPY_FILES in
> >> >build/core/main.mk:541: * the appropriate product definition.
> >> >build/core/main.mk:542: *build/target/product/core.mk is the product
JBQ