#18740: regression: fails to build for brcm2708 (raspberry pi)
-------------------------+------------------------
Reporter: j.schauer@… | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: kernel | Version: Trunk
Keywords: |
-------------------------+------------------------
Hi,
when compiling latest HEAD for brcm2708 with this diffconfig:
{{{
CONFIG_TARGET_brcm2708=y
CONFIG_TARGET_brcm2708_RaspberryPi=y
CONFIG_TARGET_BOARD="brcm2708"
}}}
then I get:
{{{
make[2] target/compile
make[3] -C target/linux compile
make -r world: build failed. Please re-run make with V=s to see what's
going on
/home/josch/openwrt/include/toplevel.mk:173: recipe for target 'world'
failed
make: *** [world] Error 1
}}}
re-running with V=s gets me:
{{{
make -C /home/josch/openwrt/build_dir/target-
arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/linux-brcm2708/linux-3.14.28
HOSTCFLAGS="-O2 -I/home/josch/openwrt/staging_dir/host/include
-I/home/josch/openwrt/staging_dir/host/usr/include -Wall -Wmissing-
prototypes -Wstrict-prototypes" CROSS_COMPILE="arm-openwrt-linux-
uclibcgnueabi-" ARCH="arm" KBUILD_HAVE_NLS=no CONFIG_SHELL="/bin/bash"
V='' CC="arm-openwrt-linux-uclibcgnueabi-gcc" modules
make[5]: Entering directory '/home/josch/openwrt/build_dir/target-
arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/linux-brcm2708/linux-3.14.28'
scripts/kconfig/conf --silentoldconfig Kconfig
net/sched/Kconfig:43: warning: menuconfig statement without prompt
*
* Restart config...
*
*
* Backlight & LCD device support
*
Backlight & LCD device support (BACKLIGHT_LCD_SUPPORT) [Y/n/?] y
Lowlevel LCD controls (LCD_CLASS_DEVICE) [M/n/y/?] (NEW)
}}}
and waits for my input.
Since this used to work, I found the following first bad commit:
{{{
commit f3fe23c06a8a00ccaa78ef55e1495b8921e39f9e
Author: nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Date: Mon Jan 5 13:02:44 2015 +0000
all targets: remove all =m kernel config symbols
modules build during the kernel compile phase are ignored anyway,
all modules should be built using KernelPackage in
package/kernel/linux/modules/*
selecting the appropriate config symbols there rather than in
target/linux/*/config-*
Signed-off-by: Daniel Golle <[email protected]>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43842
3c298f89-4303-0410-b956-a3cf2f4a3e73
}}}
Reverting the relevant hunks of above commit, the following patch makes it
work again:
{{{
#!diff
--- a/target/linux/brcm2708/config-3.14
+++ b/target/linux/brcm2708/config-3.14
@@ -22,6 +22,8 @@ CONFIG_ARM_UNWIND=y
CONFIG_AVERAGE=y
# CONFIG_BACKLIGHT_ADP8860 is not set
# CONFIG_BACKLIGHT_ADP8870 is not set
+CONFIG_BACKLIGHT_CLASS_DEVICE=m
+CONFIG_BACKLIGHT_GENERIC=m
CONFIG_BACKLIGHT_LCD_SUPPORT=y
CONFIG_BCM2708_DMAER=y
CONFIG_BCM2708_GPIO=y
@@ -148,6 +150,7 @@ CONFIG_KERNEL_GZIP=y
# CONFIG_KERNEL_XZ is not set
CONFIG_KTIME_SCALAR=y
# CONFIG_LCD_AMS369FG06 is not set
+CONFIG_LCD_CLASS_DEVICE=m
# CONFIG_LCD_L4F00242T03 is not set
# CONFIG_LCD_LD9040 is not set
# CONFIG_LCD_LMS283GF05 is not set
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/18740>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets