[Stable] Unable to compile GTA02 kernel without CONFIG_MACH_NEO1973_GTA01 set

Sven Rebhan odinshorse at googlemail.com
Thu Oct 9 21:30:10 CEST 2008


Hello,

I tried to compile the current stable kernel
(a2ef813d2f439a3e9f377d33a2e5baad098afb7e)
without setting CONFIG_MACH_NEO1973_GTA01. The compilation failed with
the attached
error. Setting CONFIG_MACH_NEO1973_GTA01=y (and CONFIG_CPU_S3C2410=y) solved
the problem

  CHK     include/linux/compile.h
  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
arch/arm/mach-s3c2440/built-in.o: In function `fiq_init_irq_source':
/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/arch/arm/mach-s3c2440/fiq_c_isr.c:136:
undefined reference to `s3c2410_pwm_init'
/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/arch/arm/mach-s3c2440/fiq_c_isr.c:146:
undefined reference to `s3c2410_pwm_enable'
/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/arch/arm/mach-s3c2440/fiq_c_isr.c:150:
undefined reference to `s3c2410_pwm_start'
arch/arm/mach-s3c2440/built-in.o: In function `gta02_modem_irq':
/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/arch/arm/mach-s3c2440/mach-gta02.c:1544:
undefined reference to `gta_gsm_interrupts'
arch/arm/mach-s3c2440/built-in.o: In function `gta02_glamo_mci_use_slow':
/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/arch/arm/mach-s3c2440/mach-gta02.c:1440:
undefined reference to `neo1973_pm_gps_is_on'
arch/arm/mach-s3c2440/built-in.o: In function `gta02_udc_command':
/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/arch/arm/mach-s3c2440/mach-gta02.c:903:
undefined reference to `neo1973_gpb_setpin'
arch/arm/mach-s3c2440/built-in.o: In function `gta02_panic_blink':
/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/arch/arm/mach-s3c2440/mach-gta02.c:353:
undefined reference to `neo1973_gpb_setpin'
arch/arm/mach-s3c2440/built-in.o: In function `s3c2440_fiq_isr':
/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/arch/arm/mach-s3c2440/mach-gta02.c:146:
undefined reference to `neo1973_gpb_setpin'
/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/arch/arm/mach-s3c2440/mach-gta02.c:150:
undefined reference to `neo1973_gpb_setpin'
arch/arm/mach-s3c2442/built-in.o:(.data+0x68): undefined reference to
`s3c2410_clkcon_enable'
arch/arm/plat-s3c24xx/built-in.o: In function `s3c244x_init_clocks':
/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/arch/arm/plat-s3c24xx/s3c244x.c:122:
undefined reference to `s3c2410_baseclk_add'
kernel/built-in.o: In function `timespec_add_ns':
/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/include/linux/time.h:174:
undefined reference to `__aeabi_uldivmod'
/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/include/linux/time.h:179:
undefined reference to `__aeabi_uldivmod'
/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/include/linux/time.h:174:
undefined reference to `__aeabi_uldivmod'
/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/include/linux/time.h:179:
undefined reference to `__aeabi_uldivmod'
drivers/built-in.o: In function `gta02led_set':
/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/drivers/leds/leds-neo1973-gta02.c:67:
undefined reference to `s3c2410_pwm_duty_cycle'
/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/drivers/leds/leds-neo1973-gta02.c:69:
undefined reference to `neo1973_gpb_setpin'
drivers/built-in.o: In function `gta02led_remove':
/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/drivers/leds/leds-neo1973-gta02.c:191:
undefined reference to `s3c2410_pwm_disable'
drivers/built-in.o: In function `gta02led_probe':
/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/drivers/leds/leds-neo1973-gta02.c:158:
undefined reference to `s3c2410_pwm_enable'
/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/drivers/leds/leds-neo1973-gta02.c:159:
undefined reference to `s3c2410_pwm_start'
/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/drivers/leds/leds-neo1973-gta02.c:168:
undefined reference to `neo1973_gpb_add_shadow_gpio'
make: *** [.tmp_vmlinux1] Error 1

Best regards,

    Sven



More information about the openmoko-kernel mailing list