Chih,
In AndroidBoard.mk there is a variable that will point to where the
built kernel would be located, example from eee_701,
ifeq ($(TARGET_PREBUILT_KERNEL),)
TARGET_PREBUILT_KERNEL := $(LOCAL_PATH)/kernel
endif
you could put another environment variable check here, and if that
variable exists, such as: TARGET_KERNEL_REBUILD=true
you could call the shell to run make in the linux kernel source tree.
After that you would want to update the TARGET_PREBUILT_KERNEL, and
let everything go along its way. That should be the cheap and easy
solution, I have not done this my self, I am new to the android source
so any other suggestions are more then welcome. This is a question I
was asking my self, currently I just build the linux source from
running make inside of the source try by hand.
Kind Regards