Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | # yocto-bsp-filename {{=machine}}.conf |
| 2 | #@TYPE: Machine |
| 3 | #@NAME: {{=machine}} |
| 4 | |
| 5 | #@DESCRIPTION: Machine configuration for {{=machine}} systems |
| 6 | |
| 7 | TARGET_FPU = "" |
| 8 | |
| 9 | {{ input type:"choicelist" name:"tunefile" prio:"40" msg:"Which machine tuning would you like to use?" default:"tune_ppce300c3" }} |
| 10 | {{ input type:"choice" val:"tune_ppc476" msg:"ppc476 tuning optimizations" }} |
| 11 | {{ input type:"choice" val:"tune_ppc603e" msg:"ppc603e tuning optimizations" }} |
| 12 | {{ input type:"choice" val:"tune_ppc7400" msg:"ppc7400 tuning optimizations" }} |
| 13 | {{ input type:"choice" val:"tune_ppce300c2" msg:"ppce300c2 tuning optimizations" }} |
| 14 | {{ input type:"choice" val:"tune_ppce300c3" msg:"ppce300c3 tuning optimizations" }} |
| 15 | {{ input type:"choice" val:"tune_ppce500" msg:"ppce500 tuning optimizations" }} |
| 16 | {{ input type:"choice" val:"tune_ppce500mc" msg:"ppce500mc tuning optimizations" }} |
| 17 | {{ input type:"choice" val:"tune_ppce500v2" msg:"ppce500v2 tuning optimizations" }} |
| 18 | {{ input type:"choice" val:"tune_ppce5500" msg:"ppce5500 tuning optimizations" }} |
| 19 | {{ input type:"choice" val:"tune_ppce6500" msg:"ppce6500 tuning optimizations" }} |
| 20 | {{ input type:"choice" val:"tune_power5" msg:"power5 tuning optimizations" }} |
| 21 | {{ input type:"choice" val:"tune_power6" msg:"power6 tuning optimizations" }} |
| 22 | {{ input type:"choice" val:"tune_power7" msg:"power7 tuning optimizations" }} |
| 23 | {{ if tunefile == "tune_ppc476": }} |
| 24 | include conf/machine/include/tune-ppc476.inc |
| 25 | {{ if tunefile == "tune_ppc603e": }} |
| 26 | include conf/machine/include/tune-ppc603e.inc |
| 27 | {{ if tunefile == "tune_ppc7400": }} |
| 28 | include conf/machine/include/tune-ppc7400.inc |
| 29 | {{ if tunefile == "tune_ppce300c2": }} |
| 30 | include conf/machine/include/tune-ppce300c2.inc |
| 31 | {{ if tunefile == "tune_ppce300c3": }} |
| 32 | include conf/machine/include/tune-ppce300c3.inc |
| 33 | {{ if tunefile == "tune_ppce500": }} |
| 34 | include conf/machine/include/tune-ppce500.inc |
| 35 | {{ if tunefile == "tune_ppce500mc": }} |
| 36 | include conf/machine/include/tune-ppce500mc.inc |
| 37 | {{ if tunefile == "tune_ppce500v2": }} |
| 38 | include conf/machine/include/tune-ppce500v2.inc |
| 39 | {{ if tunefile == "tune_ppce5500": }} |
| 40 | include conf/machine/include/tune-ppce5500.inc |
| 41 | {{ if tunefile == "tune_ppce6500": }} |
| 42 | include conf/machine/include/tune-ppce6500.inc |
| 43 | {{ if tunefile == "tune_power5": }} |
| 44 | include conf/machine/include/tune-power5.inc |
| 45 | {{ if tunefile == "tune_power6": }} |
| 46 | include conf/machine/include/tune-power6.inc |
| 47 | {{ if tunefile == "tune_power7": }} |
| 48 | include conf/machine/include/tune-power7.inc |
| 49 | |
| 50 | KERNEL_IMAGETYPE = "uImage" |
| 51 | |
| 52 | EXTRA_IMAGEDEPENDS += "u-boot" |
| 53 | UBOOT_MACHINE_{{=machine}} = "MPC8315ERDB_config" |
| 54 | |
| 55 | SERIAL_CONSOLE = "115200 ttyS0" |
| 56 | |
| 57 | MACHINE_FEATURES = "keyboard pci ext2 ext3 serial" |
| 58 | |
| 59 | {{ if kernel_choice == "custom": preferred_kernel = "linux-yocto-custom" }} |
| 60 | {{ if kernel_choice == "linux-yocto-dev": preferred_kernel = "linux-yocto-dev" }} |
| 61 | {{ if kernel_choice == "custom" or kernel_choice == "linux-yocto-dev" : }} |
| 62 | PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}" |
| 63 | |
| 64 | {{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": preferred_kernel = kernel_choice.split('_')[0] }} |
| 65 | {{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": preferred_kernel_version = kernel_choice.split('_')[1] }} |
| 66 | {{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": }} |
| 67 | PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}" |
| 68 | PREFERRED_VERSION_{{=preferred_kernel}} ?= "{{=preferred_kernel_version}}%" |
| 69 | |
| 70 | {{ input type:"boolean" name:"xserver" prio:"50" msg:"Do you need support for X? (y/n)" default:"y" }} |
| 71 | {{ if xserver == "y": }} |
| 72 | PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg" |
| 73 | XSERVER ?= "xserver-xorg \ |
| 74 | xf86-input-evdev \ |
| 75 | xf86-video-fbdev" |
| 76 | |
| 77 | PREFERRED_VERSION_u-boot ?= "v2015.01%" |
| 78 | {{ input type:"edit" name:"uboot_entrypoint" prio:"40" msg:"Please specify a value for UBOOT_ENTRYPOINT:" default:"0x00000000" }} |
| 79 | UBOOT_ENTRYPOINT = "{{=uboot_entrypoint}}" |
| 80 | |
| 81 | {{ input type:"edit" name:"kernel_devicetree" prio:"40" msg:"Please specify a [arch/powerpc/boot/dts/xxx] value for KERNEL_DEVICETREE:" default:"mpc8315erdb.dts" }} |
| 82 | KERNEL_DEVICETREE = "${S}/arch/powerpc/boot/dts/{{=kernel_devicetree}}" |
| 83 | |
| 84 | MACHINE_EXTRA_RRECOMMENDS = " kernel-modules" |
| 85 | |
| 86 | IMAGE_FSTYPES ?= "jffs2 tar.bz2" |
| 87 | JFFS2_ERASEBLOCK = "0x4000" |