On 14.03.2009 17:53, coreboot information wrote:
The developer "stepan" checked in revision 4005 to the coreboot source repository and caused the following changes:
Change Log: trivial patch for abuild: allow powerpc-elf-gcc, too.
Signed-off-by: Stefan Reinauer stepan@coresystems.de Acked-by: Stefan Reinauer stepan@coresystems.de
Thanks for adding this! Maybe we can move away from the almost pure x86 perspective we had in the last few years. If there was active PPC development, I apologize in advance for not noticing it.
Build Log: Board embeddedplanet:ep405pc has been added. Board motorola:sandpointx3_altimus_mpc7410 has been added. Board totalimpact:briq has been added.
And all of them seem to break. The following is a dissection of the command line from the log at http://qa.coreboot.org/log_buildbrd.php?revision=4005&device=ep405pc&... :
gcc
Hmm. That should be a cross-gcc.
-c -mcpu=405 -Icoreboot-v2-4005/src/include -Icoreboot-v2-4005/src/arch/ppc/include -I/usr/lib64/gcc/x86_64-suse-linux/4.3/include
Hmmm. x86_64 include files?
-DARCH='ppc' -DHAVE_MOVNTI='0' -DCROSS_COMPILE='powerpc-elf-' -DCC='gcc'
Hmmmm. cross-gcc?
-DHOSTCC='gcc' -DOBJCOPY='powerpc-elf-objcopy --gap-fill 0xff' -DCOREBOOT_VERSION='"2.0.0"' -DCOREBOOT_BUILD='"Sat Mar 14 17:40:10 CET 2009"' -DCOREBOOT_COMPILE_TIME='"17:40:10"' -DCOREBOOT_COMPILE_BY='"svn"' -DCOREBOOT_COMPILE_HOST='"ra"' -DCOREBOOT_COMPILE_DOMAIN='"coresystems.de"' -DCOREBOOT_COMPILER='"gcc version 4.3.2 [gcc-4_3-branch revision 141291] (SUSE Linux) "' -DCOREBOOT_LINKER='"GNU ld (GNU Binutils; openSUSE 11.1) 2.19"' -DCOREBOOT_ASSEMBLER='"GNU assembler version 2.19 (x86_64-suse-linux) using BFD version (GNU Binutils; openSUSE 11.1) 2.19"'
Hmmmmm. We definitely don't want to use the x86_64 assembler to assemble a PPC image.
-DCONFIG_USE_INIT='1' -DCOREBOOT_V2='1' -DHAVE_FALLBACK_BOOT='0' -DHAVE_FAILOVER_BOOT='0' -DROM_IMAGE_SIZE='0xffff' -DPAYLOAD_SIZE='0x1' -D_ROMBASE='0xfff00000' -D_RESET='0xfffffffc' -D_EXCEPTION_VECTORS='0xfff00100' -DSTACK_SIZE='0x10000' -DHEAP_SIZE='0x10000' -D_RAMBASE='0x100000' -DUSE_DCACHE_RAM='1' -DCAR_FAM10='0' -DDCACHE_RAM_BASE='0x200000' -DDCACHE_RAM_SIZE='0x4000' -DDCACHE_RAM_GLOBAL_VAR_SIZE='0x0' -DCONFIG_AP_CODE_IN_CAR='0' -DMEM_TRAIN_SEQ='0' -DWAIT_BEFORE_CPUS_INIT='0' -DCONFIG_COMPRESS='0' -DCONFIG_UNCOMPRESSED='1' -DCONFIG_LB_MEM_TOPK='2048' -DHAVE_OPTION_TABLE='0' -DUSE_OPTION_TABLE='0' -DLB_CKS_RANGE_START='49' -DLB_CKS_RANGE_END='125' -DLB_CKS_LOC='126' -DCRT0='coreboot-v2-4005/src/arch/ppc/init/crt0.S.lb' -DDEBUG='0' -DCONFIG_CONSOLE_VGA='0' -DCONFIG_CONSOLE_VGA_MULTI='0' -DCONFIG_CONSOLE_VGA_ONBOARD_AT_FIRST='0' -DCONFIG_CONSOLE_BTEXT='0' -DCONFIG_CONSOLE_LOGBUF='0' -DCONFIG_CONSOLE_SROM='0' -DCONFIG_CONSOLE_SERIAL8250='1' -DCONFIG_USBDEBUG_DIRECT='0' -DDEFAULT_CONSOLE_LOGLEVEL='8' -DMAXIMUM_CONSOLE_LOGLEVEL='8' -DCONFIG_SERIAL_POST='0' -DTTYS0_BASE='0x7600300' -DTTYS0_BAUD='9600' -DTTYS0_LCS='0x3' -DCONFIG_USE_PRINTK_IN_CAR='0' -DASSEMBLER_DEBUG='0' -DMAINBOARD='coreboot-v2-4005/src/mainboard/embeddedplanet/ep405pc' -DMAINBOARD_PART_NUMBER='"ep405pc"' -DMAINBOARD_VENDOR='"embeddedplanet"' -DMAINBOARD_PCI_SUBSYSTEM_VENDOR_ID='0' -DMAINBOARD_PCI_SUBSYSTEM_DEVICE_ID='0x0' -DCONFIG_MAX_PCI_BUSES='255' -DCONFIG_SMP='0' -DCONFIG_MAX_CPUS='1' -DCONFIG_MAX_PHYSICAL_CPUS='1' -DCONFIG_LOGICAL_CPUS='0' -DCONFIG_AP_IN_SIPI_WAIT='0' -DSERIAL_CPU_INIT='1' -DAPIC_ID_OFFSET='0' -DENABLE_APIC_EXT_ID='0' -DLIFT_BSP_APIC_ID='0' -DCONFIG_MULTIBOOT='1' -DCONFIG_IDE_PAYLOAD='0' -DCONFIG_ROM_PAYLOAD='0' -DCONFIG_ROM_PAYLOAD_START='0xffff0000' -DCONFIG_COMPRESSED_PAYLOAD_NRV2B='0' -DCONFIG_COMPRESSED_PAYLOAD_LZMA='1' -DCONFIG_PRECOMPRESSED_PAYLOAD='0' -DCONFIG_SERIAL_PAYLOAD='0' -DCONFIG_FS_PAYLOAD='1' -DCONFIG_FS_EXT2='1' -DCONFIG_FS_ISO9660='1' -DCONFIG_FS_FAT='1' -DAUTOBOOT_DELAY='2' -DAUTOBOOT_CMDLINE='"hda1:/vmlinuz"' -DUSE_WATCHDOG_ON_BOOT='0' -DCONFIG_HYPERTRANSPORT_PLUGIN_SUPPORT='1' -DCONFIG_AGP_PLUGIN_SUPPORT='1' -DCONFIG_CARDBUS_PLUGIN_SUPPORT='1' -DCONFIG_PCIX_PLUGIN_SUPPORT='1' -DCONFIG_PCIEXP_PLUGIN_SUPPORT='1' -DCONFIG_IDE='1' -DIDE_BOOT_DRIVE='0' -DIDE_OFFSET='0' -DPCI_IO_CFG_EXT='0' -DCONFIG_CHIP_NAME='0' -DHAVE_INIT_TIMER='0' -DHAVE_SMI_HANDLER='0' -DMAX_REBOOT_CNT='3' -DFAKE_SPDROM='0' -DHAVE_ACPI_TABLES='0' -DACPI_SSDTX_NUM='0' -DHT_CHAIN_UNITID_BASE='1' -DHT_CHAIN_END_UNITID_BASE='32' -DSB_HT_CHAIN_UNITID_OFFSET_ONLY='1' -DSB_HT_CHAIN_ON_BUS0='0' -DPCI_BUS_SEGN_BITS='0' -DMMCONF_SUPPORT='0' -DMMCONF_SUPPORT_DEFAULT='0' -DHW_MEM_HOLE_SIZEK='0' -DHW_MEM_HOLE_SIZE_AUTO_INC='0' -DCONFIG_VAR_MTRR_HOLE='1' -DK8_HT_FREQ_1G_SUPPORT='0' -DK8_REV_F_SUPPORT='0' -DCBB='0' -DCDB='24' -DHT3_SUPPORT='0' -DEXT_RT_TBL_SUPPORT='0' -DEXT_CONF_SUPPORT='0' -DDIMM_SUPPORT='0x108' -DCPU_SOCKET_TYPE='16' -DCPU_ADDR_BITS='36' -DCONFIG_VGA_ROM_RUN='0' -DCONFIG_PCI_ROM_RUN='0' -DCONFIG_PCI_64BIT_PREF_MEM='0' -DCONFIG_AMDMCT='0' -DK8_MEM_BANK_B_ONLY='0' -DHAVE_MAINBOARD_RESOURCES='0' -DHAVE_LOW_TABLES='1' -DHAVE_HIGH_TABLES='0' -DCONFIG_PCIE_CONFIGSPACE_HOLE='0' -DPCIC0_CFGADDR='0xeec00000' -DPCIC0_CFGDATA='0xeec00004' -DISA_IO_BASE='0xe8000000' -DISA_MEM_BASE='0x80000000' -D_IO_BASE='0xe8000000' -DCPU_OPT='-mcpu=405' -DCONFIG_CHIP_CONFIGURE='1' -DTTYS0_DIV='69' -DNO_POST='1' -DCONFIG_SYS_CLK_FREQ='33' -DROM_SIZE='0x100000' -D_ROMSTART='0xfff03000' -DEMBEDDED_RAM_SIZE='67108864' -DCOREBOOT_EXTRA_VERSION='".0"' -DCONFIG_UDELAY_IO='0' -Os -nostdinc -nostdlib -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -Werror-implicit-function-declaration -Wstrict-aliasing -Wshadow -fno-common -ffreestanding -fno-builtin -fomit-frame-pointer -msoft-float -o src/arch/ppc/init/ppc_main.o coreboot-v2-4005//src/arch/ppc/init/ppc_main.c
Last part seems OK if we ignore some #defines irrelevant for PPC.
Overall, there are some host arch includes, messages and commands which do no really belong there.
The patch is a good start, though.
Regards, Carl-Daniel