mirror of
https://git.yoctoproject.org/poky
synced 2026-03-26 04:02:21 +01:00
Zoom2 MMC patches are now upstream. Patch no longer required. Signed-off-by: Mike Turquette <mturquette@ti.com>
74 lines
2.6 KiB
BlitzBasic
74 lines
2.6 KiB
BlitzBasic
DESCRIPTION = "Linux Kernel"
|
|
SECTION = "kernel"
|
|
LICENSE = "GPL"
|
|
|
|
inherit kernel
|
|
|
|
FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/${PN}-git/${MACHINE}"
|
|
|
|
SRCREV = "${AUTOREV}"
|
|
|
|
PV = "2.6.31-rc1+${PR}+git${SRCREV}"
|
|
PR = "r1"
|
|
|
|
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap-pm.git;branch=pm;protocol=git"
|
|
|
|
SRC_URI_append_zoom2 = " \
|
|
file://0002-OMAP3-Zoom2-Add-TWL4030-support.patch;patch=1 \
|
|
file://0003-OMAP3-Zoom2-Update-board-defconfig.patch;patch=1 \
|
|
file://0004-serial-8250-add-IRQ-trigger-support.patch;patch=1 \
|
|
file://0005-OMAP2-Zoom2-Pass-irqflags-to-8250-driver.patch;patch=1 \
|
|
file://0006-OMAP3-Zoom2-ext-UART-needs-plaform_device.id-3.patch;patch=1 \
|
|
file://0007-omap-zoom2-add-external-uart-DEBUG_LL-support-to-zoo.patch;patch=1 \
|
|
file://0008-omap2-add-support-for-DEBUG_LL-on-external-UART.patch;patch=1 \
|
|
"
|
|
|
|
COMPATIBLE_MACHINE = "beagleboard|omap-3430sdp|omap3evm|overo|rx51|zoom2"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
do_configure_prepend() {
|
|
# logo support: if you supply logo_linux_clut224.ppm in SRC_URI,
|
|
# then it's going to be used instead of "Tux" in the kernel sources
|
|
if [ -e ${WORKDIR}/logo_linux_clut224.ppm ]; then
|
|
install -m 0644 ${WORKDIR}/logo_linux_clut224.ppm \
|
|
drivers/video/logo/logo_linux_clut224.ppm
|
|
fi
|
|
|
|
# use the externally-supplied ${MACHINE}_external_defconfig if present,
|
|
# else use omap3_pm_defconfig from the sources
|
|
if [ -e ${WORKDIR}/${MACHINE}_external_defconfig ]; then
|
|
cp ${WORKDIR}/${MACHINE}_external_defconfig ${S}/arch/arm/configs/
|
|
yes '' | oe_runmake ${MACHINE}_external_defconfig
|
|
else
|
|
case ${MACHINE} in
|
|
omap-3430sdp|omap3evm)
|
|
# works out of the box
|
|
yes '' | oe_runmake omap3_pm_defconfig
|
|
;;
|
|
beagleboard | overo | rx51)
|
|
# adjust LL_DEBUG console for these boards
|
|
yes '' | oe_runmake omap3_pm_defconfig
|
|
sed -e "s/CONFIG_OMAP_LL_DEBUG_UART1=y/# CONFIG_OMAP_LL_DEBUG_UART1 is not set/" \
|
|
-e "s/# CONFIG_OMAP_LL_DEBUG_UART3 is not set/CONFIG_OMAP_LL_DEBUG_UART3=y/" \
|
|
-e "s/CONFIG_MMC_BLOCK=m/CONFIG_MMC_BLOCK=y/" \
|
|
-e "s/CONFIG_MMC_OMAP_HS=m/CONFIG_MMC_OMAP_HS=y/" \
|
|
-i ${S}/.config
|
|
;;
|
|
zoom2)
|
|
# adjust LL_DEBUG console for these boards
|
|
yes '' | oe_runmake omap3_pm_defconfig
|
|
sed -e "s/CONFIG_OMAP_LL_DEBUG_UART1=y/# CONFIG_OMAP_LL_DEBUG_UART1 is not set/" \
|
|
-e "s/CONFIG_MMC_BLOCK=m/CONFIG_MMC_BLOCK=y/" \
|
|
-e "s/CONFIG_MMC_OMAP_HS=m/CONFIG_MMC_OMAP_HS=y/" \
|
|
-i ${S}/.config
|
|
echo "CONFIG_OMAP_LL_DEBUG_UART_EXT=y" >> ${S}/.config
|
|
;;
|
|
*)
|
|
# its worth a try...
|
|
yes '' | oe_runmake ${MACHINE}_defconfig
|
|
;;
|
|
esac
|
|
fi
|
|
}
|