summaryrefslogtreecommitdiffstats
path: root/scripts/lib/bsp/substrate/target/arch/powerpc
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/bsp/substrate/target/arch/powerpc')
-rw-r--r--scripts/lib/bsp/substrate/target/arch/powerpc/.gitignore0
-rw-r--r--scripts/lib/bsp/substrate/target/arch/powerpc/conf/machine/{{=machine}}.conf53
-rw-r--r--scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/user-config.cfg4
-rw-r--r--scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/user-patches.scc0
-rw-r--r--scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/{{=machine}}-preempt-rt.scc8
-rw-r--r--scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/{{=machine}}-standard.scc8
-rw-r--r--scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/{{=machine}}.cfg163
-rw-r--r--scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/{{=machine}}.scc11
-rw-r--r--scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/kernel-list.noinstall4
-rw-r--r--scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.0": }} linux-yocto-rt_3.0.bbappend39
-rw-r--r--scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.2": }} linux-yocto-rt_3.2.bbappend39
-rw-r--r--scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.0": }} linux-yocto_3.0.bbappend41
-rw-r--r--scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.2": }} linux-yocto_3.2.bbappend39
13 files changed, 409 insertions, 0 deletions
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/.gitignore b/scripts/lib/bsp/substrate/target/arch/powerpc/.gitignore
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/powerpc/.gitignore
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/conf/machine/{{=machine}}.conf b/scripts/lib/bsp/substrate/target/arch/powerpc/conf/machine/{{=machine}}.conf
new file mode 100644
index 0000000000..4f83dbb588
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/powerpc/conf/machine/{{=machine}}.conf
@@ -0,0 +1,53 @@
1#@TYPE: Machine
2#@NAME: {{=machine}}
3
4#@DESCRIPTION: Machine configuration for {{=machine}} systems
5
6TARGET_FPU = ""
7
8{{ input type:"choicelist" name:"tunefile" prio:"40" msg:"Which machine tuning would you like to use?" default:"tune_ppc603e" }}
9{{ input type:"choice" val:"tune_ppc603e" msg:"ppc603e tuning optimizations" }}
10{{ input type:"choice" val:"tune_ppce300c2" msg:"ppce300c2 tuning optimizations" }}
11{{ input type:"choice" val:"tune_ppce500" msg:"ppce500 tuning optimizations" }}
12{{ input type:"choice" val:"tune_ppce500mc" msg:"ppce500mc tuning optimizations" }}
13{{ input type:"choice" val:"tune_ppce500v2" msg:"ppce500v2 tuning optimizations" }}
14{{ input type:"choice" val:"tune_ppce5500_32b" msg:"ppce5500-32b tuning optimizations" }}
15{{ input type:"choice" val:"tune_ppce5500_64b" msg:"ppce5500-64b tuning optimizations" }}
16{{ if tunefile == "tune_ppc603e": }}
17include conf/machine/include/tune-ppc603e.inc
18{{ if tunefile == "tune_ppce300c2": }}
19include conf/machine/include/tune-ppce300c2.inc
20{{ if tunefile == "tune_ppce500": }}
21include conf/machine/include/tune-ppce500.inc
22{{ if tunefile == "tune_ppce500mc": }}
23include conf/machine/include/tune-ppce500mc.inc
24{{ if tunefile == "tune_ppce500v2": }}
25include conf/machine/include/tune-ppce500v2.inc
26{{ if tunefile == "tune_ppce5500_32b": }}
27include conf/machine/include/tune-ppce5500-32b.inc
28{{ if tunefile == "tune_ppce5500_64b": }}
29include conf/machine/include/tune-ppce5500-64b.inc
30
31KERNEL_IMAGETYPE = "uImage"
32
33SERIAL_CONSOLE = "115200 ttyS0"
34
35MACHINE_FEATURES = "kernel26 keyboard pci ext2 ext3 serial"
36
37{{ preferred_kernel = kernel_choice.split('_')[0] }}
38{{ preferred_kernel_version = kernel_choice.split('_')[1] }}
39PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}"
40PREFERRED_VERSION_{{=preferred_kernel}} ?= "{{=preferred_kernel_version}}%"
41
42{{ input type:"boolean" name:"xserver" prio:"50" msg:"Do you need support for X? (y/n)" default:"y" }}
43{{ if xserver == "y": }}
44PREFERRED_PROVIDER_virtual/xserver = "xserver-kdrive"
45XSERVER = "xserver-kdrive-fbdev"
46
47{{ input type:"edit" name:"uboot_entrypoint" prio:"40" msg:"Please specify a value for UBOOT_ENTRYPOINT:" default:"0x00000000" }}
48UBOOT_ENTRYPOINT = "{{=uboot_entrypoint}}"
49
50{{ input type:"edit" name:"kernel_devicetree" prio:"40" msg:"Please specify a [arch/powerpc/boot/dts/xxx] value for KERNEL_DEVICETREE:" default:"mpc8315erdb.dts" }}
51KERNEL_DEVICETREE = "${S}/arch/powerpc/boot/dts/{{=kernel_devicetree}}"
52
53MACHINE_EXTRA_RRECOMMENDS = " kernel-modules"
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/user-config.cfg b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/user-config.cfg
new file mode 100644
index 0000000000..2ee921bfc4
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/user-config.cfg
@@ -0,0 +1,4 @@
1CONFIG_FTRACE_SYSCALLS=y
2CONFIG_SCHED_TRACER=y
3CONFIG_IRQSOFF_TRACER=y
4CONFIG_PREEMPT_TRACER=y
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/user-patches.scc b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/user-patches.scc
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/user-patches.scc
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/{{=machine}}-preempt-rt.scc b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/{{=machine}}-preempt-rt.scc
new file mode 100644
index 0000000000..4a182a38e8
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/{{=machine}}-preempt-rt.scc
@@ -0,0 +1,8 @@
1define KMACHINE {{=machine}}
2define KTYPE preempt-rt
3define KARCH powerpc
4
5# no new branch required, re-use the ktypes/preempt-rt branch
6include ktypes/preempt-rt
7
8include {{=machine}}.scc
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/{{=machine}}-standard.scc b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/{{=machine}}-standard.scc
new file mode 100644
index 0000000000..1213e61a01
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/{{=machine}}-standard.scc
@@ -0,0 +1,8 @@
1define KMACHINE {{=machine}}
2define KTYPE standard
3define KARCH powerpc
4
5include ktypes/standard
6branch {{=machine}}
7
8include {{=machine}}.scc
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/{{=machine}}.cfg b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/{{=machine}}.cfg
new file mode 100644
index 0000000000..9f37d07553
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/{{=machine}}.cfg
@@ -0,0 +1,163 @@
1..........................................................................
2. WARNING
3.
4. This file is a kernel configuration fragment, and not a full kernel
5. configuration file. The final kernel configuration is made up of
6. an assembly of processed fragments, each of which is designed to
7. capture a specific part of the final configuration (e.g. platform
8. configuration, feature configuration, and board specific hardware
9. configuration). For more information on kernel configuration, please
10. consult the product documentation.
11.
12..........................................................................
13CONFIG_PPC32=y
14CONFIG_PPC_OF=y
15CONFIG_PPC_UDBG_16550=y
16
17#
18# Processor support
19#
20CONFIG_PPC_83xx=y
21
22#
23# Platform support
24#
25CONFIG_MPC831x_RDB=y
26# CONFIG_PPC_CHRP is not set
27# CONFIG_PPC_PMAC is not set
28
29#
30# Bus options
31#
32CONFIG_PCI=y
33
34#
35# Memory Technology Devices (MTD)
36#
37CONFIG_MTD=y
38CONFIG_MTD_PARTITIONS=y
39CONFIG_MTD_CMDLINE_PARTS=y
40CONFIG_MTD_OF_PARTS=y
41
42#
43# User Modules And Translation Layers
44#
45CONFIG_MTD_CHAR=y
46CONFIG_MTD_BLOCK=y
47
48#
49# RAM/ROM/Flash chip drivers
50#
51CONFIG_MTD_CFI=y
52CONFIG_MTD_CFI_AMDSTD=y
53
54#
55# Mapping drivers for chip access
56#
57CONFIG_MTD_PHYSMAP_OF=y
58
59#
60# NAND Flash Device Drivers
61#
62CONFIG_MTD_NAND=y
63
64#
65# Ethernet (1000 Mbit)
66#
67CONFIG_GIANFAR=y
68
69#
70# Serial drivers
71#
72CONFIG_SERIAL_8250=y
73CONFIG_SERIAL_8250_CONSOLE=y
74CONFIG_SERIAL_8250_NR_UARTS=2
75
76#
77# Watchdog Device Drivers
78#
79CONFIG_8xxx_WDT=y
80
81#
82# I2C support
83#
84CONFIG_I2C=y
85CONFIG_I2C_CHARDEV=y
86
87#
88# I2C Hardware Bus support
89#
90CONFIG_I2C_MPC=y
91
92CONFIG_SENSORS_LM75=y
93
94CONFIG_MISC_DEVICES=y
95
96#
97# Miscellaneous I2C Chip support
98#
99CONFIG_EEPROM_AT24=y
100
101#
102# SPI support
103#
104CONFIG_SPI=y
105# CONFIG_SPI_DEBUG is not set
106CONFIG_SPI_MASTER=y
107
108#
109# SPI Master Controller Drivers
110#
111CONFIG_SPI_MPC8xxx=y
112
113#
114# SPI Protocol Masters
115#
116CONFIG_HWMON=y
117
118#
119# SCSI device support
120#
121CONFIG_SCSI=y
122CONFIG_BLK_DEV_SD=y
123CONFIG_CHR_DEV_SG=y
124CONFIG_SCSI_LOGGING=y
125
126CONFIG_ATA=y
127CONFIG_ATA_VERBOSE_ERROR=y
128CONFIG_SATA_FSL=y
129CONFIG_ATA_SFF=y
130
131#
132# USB support
133#
134CONFIG_USB=m
135CONFIG_USB_DEVICEFS=y
136
137#
138# USB Host Controller Drivers
139#
140CONFIG_USB_EHCI_HCD=m
141CONFIG_USB_EHCI_FSL=y
142CONFIG_USB_STORAGE=m
143
144#
145# Real Time Clock
146#
147CONFIG_RTC_CLASS=y
148
149#
150# I2C RTC drivers
151#
152CONFIG_RTC_DRV_DS1307=y
153
154CONFIG_KGDB_8250=m
155
156CONFIG_CRYPTO_DEV_TALITOS=m
157
158CONFIG_FSL_DMA=y
159
160CONFIG_MMC=y
161CONFIG_MMC_SPI=m
162
163CONFIG_USB_FSL_MPH_DR_OF=y
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/{{=machine}}.scc b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/{{=machine}}.scc
new file mode 100644
index 0000000000..17d5033c5f
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/files/{{=machine}}.scc
@@ -0,0 +1,11 @@
1kconf hardware {{=machine}}.cfg
2
3include cfg/usb-mass-storage.scc
4include cfg/vfat.scc
5{{ if kernel_choice == "linux-yocto_3.0" or kernel_choice == "linux-yocto-rt_3.0": }}
6include features/dmaengine/dmaengine.scc
7{{ if kernel_choice == "linux-yocto_3.2" or kernel_choice == "linux-yocto-rt_3.2": }}
8include cfg/dmaengine/dmaengine.scc
9
10kconf hardware user-config.cfg
11include user-patches.scc
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/kernel-list.noinstall b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/kernel-list.noinstall
new file mode 100644
index 0000000000..14cefa60c0
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/kernel-list.noinstall
@@ -0,0 +1,4 @@
1{{ input type:"boolean" name:"use_default_kernel" prio:"10" msg:"Would you like to use the default (3.2) kernel? (y/n)" default:"y"}}
2
3{{ if use_default_kernel == "n": }}
4{{ input type:"choicelist" name:"kernel_choice" gen:"bsp.kernel.kernels" prio:"10" msg:"Please choose the kernel to use in this BSP:" default:"linux-yocto_3.2"}}
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.0": }} linux-yocto-rt_3.0.bbappend b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.0": }} linux-yocto-rt_3.0.bbappend
new file mode 100644
index 0000000000..144acd3e54
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.0": }} linux-yocto-rt_3.0.bbappend
@@ -0,0 +1,39 @@
1FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
2
3PR := "${PR}.1"
4
5COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}"
6
7{{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }}
8
9{{ if need_new_kbranch == "y": }}
10{{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"yocto/standard/preempt-rt" }}
11
12{{ if need_new_kbranch == "n": }}
13{{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"yocto/standard/preempt-rt/base" }}
14
15{{ if need_new_kbranch == "y": }}
16KBRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}"
17{{ if need_new_kbranch == "n": }}
18KBRANCH_{{=machine}} = "{{=existing_kbranch}}"
19
20{{ if need_new_kbranch == "y": }}
21YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}"
22
23KMACHINE_{{=machine}} = "{{=machine}}"
24
25{{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}}
26{{ if smp == "y": }}
27KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc"
28
29SRC_URI += "file://{{=machine}}-preempt-rt.scc \
30 file://{{=machine}}.scc \
31 file://{{=machine}}.cfg \
32 file://user-config.cfg \
33 file://user-patches.scc \
34 "
35
36# uncomment and replace these SRCREVs with the real commit ids once you've had
37# the appropriate changes committed to the upstream linux-yocto repo
38#SRCREV_machine_pn-linux-yocto-rt_{{=machine}} ?= "417fc778a86e81303bab5883b919ee422ec51c04"
39#SRCREV_meta_pn-linux-yocto-rt_{{=machine}} ?= "138bf5b502607fe40315c0d76822318d77d97e01"
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.2": }} linux-yocto-rt_3.2.bbappend b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.2": }} linux-yocto-rt_3.2.bbappend
new file mode 100644
index 0000000000..7fc48a5971
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.2": }} linux-yocto-rt_3.2.bbappend
@@ -0,0 +1,39 @@
1FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
2
3PR := "${PR}.1"
4
5COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}"
6
7{{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }}
8
9{{ if need_new_kbranch == "y": }}
10{{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/preempt-rt" }}
11
12{{ if need_new_kbranch == "n": }}
13{{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/preempt-rt/base" }}
14
15{{ if need_new_kbranch == "y": }}
16KBRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}"
17{{ if need_new_kbranch == "n": }}
18KBRANCH_{{=machine}} = "{{=existing_kbranch}}"
19
20{{ if need_new_kbranch == "y": }}
21YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}"
22
23KMACHINE_{{=machine}} = "{{=machine}}"
24
25{{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}}
26{{ if smp == "y": }}
27KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc"
28
29SRC_URI += "file://{{=machine}}-preempt-rt.scc \
30 file://{{=machine}}.scc \
31 file://{{=machine}}.cfg \
32 file://user-config.cfg \
33 file://user-patches.scc \
34 "
35
36# uncomment and replace these SRCREVs with the real commit ids once you've had
37# the appropriate changes committed to the upstream linux-yocto repo
38#SRCREV_machine_pn-linux-yocto-rt_{{=machine}} ?= "417fc778a86e81303bab5883b919ee422ec51c04"
39#SRCREV_meta_pn-linux-yocto-rt_{{=machine}} ?= "138bf5b502607fe40315c0d76822318d77d97e01"
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.0": }} linux-yocto_3.0.bbappend b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.0": }} linux-yocto_3.0.bbappend
new file mode 100644
index 0000000000..12de75eeba
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.0": }} linux-yocto_3.0.bbappend
@@ -0,0 +1,41 @@
1FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
2
3PR := "${PR}.1"
4
5COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}"
6
7{{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }}
8
9{{ if need_new_kbranch == "y": }}
10{{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"yocto/standard" }}
11
12{{ if need_new_kbranch == "n": }}
13{{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"yocto/standard" }}
14
15{{ if need_new_kbranch == "y": }}
16KBRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}"
17{{ if need_new_kbranch == "n": }}
18KBRANCH_{{=machine}} = "{{=existing_kbranch}}"
19
20KMACHINE_{{=machine}} = "{{=machine}}"
21
22{{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}}
23{{ if smp == "y": }}
24KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc"
25
26{{ if need_new_kbranch == "y": }}
27YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}"
28{{ if need_new_kbranch == "n": }}
29YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=existing_kbranch}}"
30
31SRC_URI += "file://{{=machine}}-standard.scc \
32 file://{{=machine}}.scc \
33 file://{{=machine}}.cfg \
34 file://user-config.cfg \
35 file://user-patches.scc \
36 "
37
38# uncomment and replace these SRCREVs with the real commit ids once you've had
39# the appropriate changes committed to the upstream linux-yocto repo
40#SRCREV_machine_pn-linux-yocto_{{=machine}} ?= "417fc778a86e81303bab5883b919ee422ec51c04"
41#SRCREV_meta_pn-linux-yocto_{{=machine}} ?= "138bf5b502607fe40315c0d76822318d77d97e01"
diff --git a/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.2": }} linux-yocto_3.2.bbappend b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.2": }} linux-yocto_3.2.bbappend
new file mode 100644
index 0000000000..5480e90b26
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/powerpc/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.2": }} linux-yocto_3.2.bbappend
@@ -0,0 +1,39 @@
1FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
2
3PR := "${PR}.1"
4
5COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}"
6
7{{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }}
8
9{{ if need_new_kbranch == "y": }}
10{{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/default" }}
11
12{{ if need_new_kbranch == "n": }}
13{{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/default" }}
14
15{{ if need_new_kbranch == "y": }}
16KBRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}"
17{{ if need_new_kbranch == "n": }}
18KBRANCH_{{=machine}} = "{{=existing_kbranch}}"
19
20{{ if need_new_kbranch == "y": }}
21YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}"
22
23KMACHINE_{{=machine}} = "{{=machine}}"
24
25{{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}}
26{{ if smp == "y": }}
27KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc"
28
29SRC_URI += "file://{{=machine}}-standard.scc \
30 file://{{=machine}}.scc \
31 file://{{=machine}}.cfg \
32 file://user-config.cfg \
33 file://user-patches.scc \
34 "
35
36# uncomment and replace these SRCREVs with the real commit ids once you've had
37# the appropriate changes committed to the upstream linux-yocto repo
38#SRCREV_machine_pn-linux-yocto_{{=machine}} ?= "417fc778a86e81303bab5883b919ee422ec51c04"
39#SRCREV_meta_pn-linux-yocto_{{=machine}} ?= "138bf5b502607fe40315c0d76822318d77d97e01"