summaryrefslogtreecommitdiffstats
path: root/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel')
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/user-config.cfg0
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/user-patches.scc0
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/{{=machine}}-non_hardware.cfg30
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/{{=machine}}-preempt-rt.scc8
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/{{=machine}}-standard.scc8
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/{{=machine}}.cfg336
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/{{=machine}}.scc7
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/kernel-list.noinstall4
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/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/arm/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/arm/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.0": }} linux-yocto_3.0.bbappend41
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.2": }} linux-yocto_3.2.bbappend39
12 files changed, 551 insertions, 0 deletions
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/user-config.cfg b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/user-config.cfg
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/user-config.cfg
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/user-patches.scc b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/user-patches.scc
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/user-patches.scc
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/{{=machine}}-non_hardware.cfg b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/{{=machine}}-non_hardware.cfg
new file mode 100644
index 0000000000..361343bb58
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/{{=machine}}-non_hardware.cfg
@@ -0,0 +1,30 @@
1#
2# Miscellaneous filesystems
3#
4CONFIG_NFS_DEF_FILE_IO_SIZE=1024
5
6#
7# Multiple Device Support
8#
9# CONFIG_MD is not set
10
11# Kernel Features
12#
13CONFIG_NO_HZ=y
14
15#
16# CPUIdle
17#
18CONFIG_CPU_IDLE=y
19CONFIG_CPU_IDLE_GOV_LADDER=y
20CONFIG_CPU_IDLE_GOV_MENU=y
21
22#
23# Kernel hacking
24#
25CONFIG_DEBUG_FS=y
26
27#
28# Power management options
29#
30CONFIG_PM_DEBUG=y
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/{{=machine}}-preempt-rt.scc b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/{{=machine}}-preempt-rt.scc
new file mode 100644
index 0000000000..22ff307b91
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/{{=machine}}-preempt-rt.scc
@@ -0,0 +1,8 @@
1define KMACHINE {{=machine}}
2define KTYPE preempt-rt
3define KARCH arm
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/arm/recipes-kernel/linux/files/{{=machine}}-standard.scc b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/{{=machine}}-standard.scc
new file mode 100644
index 0000000000..cd8fa9cbf5
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/{{=machine}}-standard.scc
@@ -0,0 +1,8 @@
1define KMACHINE {{=machine}}
2define KTYPE standard
3define KARCH arm
4
5include ktypes/standard
6branch {{=machine}}
7
8include {{=machine}}.scc
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/{{=machine}}.cfg b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/{{=machine}}.cfg
new file mode 100644
index 0000000000..994e034252
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/{{=machine}}.cfg
@@ -0,0 +1,336 @@
1#
2# System Type
3#
4CONFIG_ARCH_OMAP=y
5CONFIG_HAVE_PWM=y
6CONFIG_ARM_L1_CACHE_SHIFT_6=y
7
8#
9# TI OMAP Implementations
10#
11# CONFIG_ARCH_OMAP2 is not set
12CONFIG_ARCH_OMAP3=y
13
14#
15# TI OMAP Common Features
16#
17CONFIG_ARCH_OMAP2PLUS=y
18
19#
20# OMAP Feature Selections
21#
22CONFIG_OMAP_32K_TIMER=y
23CONFIG_OMAP_32K_TIMER_HZ=128
24CONFIG_OMAP_DM_TIMER=y
25CONFIG_OMAP_RESET_CLOCKS=y
26CONFIG_OMAP_SMARTREFLEX=y
27CONFIG_OMAP_SMARTREFLEX_CLASS3=y
28CONFIG_OMAP_MBOX_FWK=m
29CONFIG_OMAP_MBOX_KFIFO_SIZE=256
30CONFIG_OMAP_IOMMU=m
31CONFIG_OMAP_IOMMU_DEBUG=m
32
33#
34# OMAP Board Type
35#
36CONFIG_MACH_OMAP3_BEAGLE=y
37
38#
39# Processor Features
40#
41CONFIG_ARM_THUMBEE=y
42CONFIG_ARM_L1_CACHE_SHIFT=6
43CONFIG_ARM_ERRATA_430973=y
44
45#
46# Kernel Features
47#
48CONFIG_LEDS=y
49
50
51#
52# Serial drivers
53#
54CONFIG_SERIAL_8250=y
55CONFIG_SERIAL_8250_CONSOLE=y
56CONFIG_SERIAL_8250_EXTENDED=y
57CONFIG_SERIAL_8250_RSA=y
58CONFIG_SERIAL_8250_MANY_PORTS=y
59CONFIG_SERIAL_8250_SHARE_IRQ=y
60CONFIG_SERIAL_8250_DETECT_IRQ=y
61CONFIG_SERIAL_8250_RUNTIME_UARTS=4
62
63#
64# At least one emulation must be selected
65#
66CONFIG_VFP=y
67CONFIG_NEON=y
68
69#
70# Power management options
71#
72CONFIG_PM=y
73CONFIG_PM_RUNTIME=y
74
75#
76# Generic Driver Options
77#
78CONFIG_MTD=y
79CONFIG_MTD_CONCAT=y
80CONFIG_MTD_PARTITIONS=y
81CONFIG_MTD_CMDLINE_PARTS=y
82#
83# User Modules And Translation Layers
84#
85CONFIG_MTD_CHAR=y
86CONFIG_MTD_BLKDEVS=y
87CONFIG_MTD_BLOCK=y
88
89#
90# RAM/ROM/Flash chip drivers
91#
92CONFIG_MTD_CFI=y
93CONFIG_MTD_CFI_INTELEXT=y
94
95#
96# Disk-On-Chip Device Drivers
97#
98CONFIG_MTD_NAND=y
99
100CONFIG_MTD_NAND_OMAP2=y
101# CONFIG_MTD_NAND_OMAP_PREFETCH is not set
102
103CONFIG_MTD_UBI=y
104
105#
106# SCSI device support
107#
108CONFIG_SCSI=y
109
110#
111# SCSI support type (disk, tape, CD-ROM)
112#
113CONFIG_BLK_DEV_SD=y
114
115#
116# Ethernet (10 or 100Mbit)
117#
118CONFIG_SMSC911X=y
119
120#
121# Userland interfaces
122#
123CONFIG_INPUT_EVDEV=y
124
125#
126# Input Device Drivers
127#
128CONFIG_KEYBOARD_TWL4030=y
129CONFIG_INPUT_TOUCHSCREEN=y
130CONFIG_TOUCHSCREEN_ADS7846=y
131
132#
133# Miscellaneous I2C Chip support
134#
135CONFIG_I2C=y
136CONFIG_I2C_OMAP=y
137CONFIG_SPI=y
138CONFIG_SPI_MASTER=y
139CONFIG_SPI_OMAP24XX=y
140
141#
142# I2C GPIO expanders:
143#
144CONFIG_GPIO_TWL4030=y
145
146#
147# SPI GPIO expanders:
148#
149CONFIG_OMAP_WATCHDOG=y
150CONFIG_WATCHDOG_NOWAYOUT=y
151
152#
153# Multifunction device drivers
154#
155CONFIG_TWL4030_CORE=y
156CONFIG_REGULATOR=y
157CONFIG_REGULATOR_DUMMY=y
158CONFIG_REGULATOR_TWL4030=y
159
160#
161# Graphics support
162#
163CONFIG_FB=y
164CONFIG_DRM=m
165# CONFIG_VGASTATE is not set
166# CONFIG_VIDEO_OUTPUT_CONTROL is not set
167# CONFIG_FIRMWARE_EDID is not set
168# CONFIG_FB_DDC is not set
169# CONFIG_FB_BOOT_VESA_SUPPORT is not set
170CONFIG_FB_CFB_FILLRECT=y
171CONFIG_FB_CFB_COPYAREA=y
172CONFIG_FB_CFB_IMAGEBLIT=y
173# CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set
174CONFIG_FB_SYS_FILLRECT=m
175CONFIG_FB_SYS_COPYAREA=m
176CONFIG_FB_SYS_IMAGEBLIT=m
177# CONFIG_FB_FOREIGN_ENDIAN is not set
178CONFIG_FB_SYS_FOPS=m
179CONFIG_FB_DEFERRED_IO=y
180# CONFIG_FB_SVGALIB is not set
181# CONFIG_FB_MACMODES is not set
182# CONFIG_FB_BACKLIGHT is not set
183CONFIG_FB_MODE_HELPERS=y
184# CONFIG_FB_TILEBLITTING is not set
185
186#
187# Frame buffer hardware drivers
188#
189CONFIG_FB_OMAP=y
190CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE=2
191# CONFIG_FB_S1D13XXX is not set
192# CONFIG_FB_TMIO is not set
193# CONFIG_FB_VIRTUAL is not set
194# CONFIG_FB_METRONOME is not set
195# CONFIG_FB_MB862XX is not set
196# CONFIG_FB_BROADSHEET is not set
197# CONFIG_FB_OMAP_BOOTLOADER_INIT is not set
198CONFIG_OMAP2_VRAM=y
199CONFIG_OMAP2_VRFB=y
200CONFIG_OMAP2_DSS=y
201CONFIG_OMAP2_VRAM_SIZE=14
202CONFIG_OMAP2_DSS_DEBUG_SUPPORT=y
203# CONFIG_OMAP2_DSS_COLLECT_IRQ_STATS is not set
204CONFIG_OMAP2_DSS_DPI=y
205# CONFIG_OMAP2_DSS_RFBI is not set
206CONFIG_OMAP2_DSS_VENC=y
207# CONFIG_OMAP2_DSS_SDI is not set
208CONFIG_OMAP2_DSS_DSI=y
209CONFIG_OMAP2_DSS_USE_DSI_PLL=y
210# CONFIG_OMAP2_DSS_FAKE_VSYNC is not set
211CONFIG_OMAP2_DSS_MIN_FCK_PER_PCK=0
212CONFIG_FB_OMAP2=y
213CONFIG_FB_OMAP2_DEBUG_SUPPORT=y
214CONFIG_FB_OMAP2_NUM_FBS=2
215
216#
217# OMAP2/3 Display Device Drivers
218#
219CONFIG_PANEL_GENERIC=y
220CONFIG_PANEL_SHARP_LS037V7DW01=y
221# CONFIG_PANEL_LGPHILIPS_LB035Q02 is not set
222# CONFIG_PANEL_SAMSUNG_LTE430WQ_F0C is not set
223# CONFIG_PANEL_SHARP_LQ043T1DG01 is not set
224# CONFIG_PANEL_TAAL is not set
225CONFIG_PANEL_TOPPOLY_TDO35S=m
226CONFIG_PANEL_TPO_TD043MTEA1=m
227# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
228CONFIG_BACKLIGHT_CLASS_DEVICE=y
229
230#
231# Display device support
232#
233CONFIG_DISPLAY_SUPPORT=y
234CONFIG_DUMMY_CONSOLE=y
235# CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY is not set
236CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y
237# CONFIG_FONTS is not set
238CONFIG_FONT_8x8=y
239CONFIG_FONT_8x16=y
240# CONFIG_LOGO_LINUX_MONO is not set
241# CONFIG_LOGO_LINUX_VGA16 is not set
242
243#
244# Console display driver support
245#
246CONFIG_FRAMEBUFFER_CONSOLE=y
247CONFIG_LOGO=y
248# CONFIG_VGA_CONSOLE is not set
249
250CONFIG_SOUND=y
251CONFIG_SND=y
252CONFIG_SND_SOC=y
253CONFIG_SND_OMAP_SOC=y
254CONFIG_SND_OMAP_SOC_OMAP3_BEAGLE=y
255
256#
257# USB Input Devices
258#
259CONFIG_USB=y
260CONFIG_USB_SUPPORT=y
261
262#
263# Miscellaneous USB options
264#
265CONFIG_USB_DEVICEFS=y
266CONFIG_USB_OTG=y
267# CONFIG_USB_OTG_WHITELIST is not set
268
269#
270# USB Host Controller Drivers
271#
272CONFIG_USB_EHCI_HCD=y
273CONFIG_USB_EHCI_TT_NEWSCHED=y
274CONFIG_USB_EHCI_ROOT_HUB_TT=y
275CONFIG_USB_MUSB_HDRC=y
276CONFIG_USB_MUSB_OMAP2PLUS=y
277CONFIG_USB_MUSB_SOC=y
278
279#
280# OMAP 343x high speed USB support
281#
282CONFIG_USB_MUSB_OTG=y
283CONFIG_USB_GADGET_MUSB_HDRC=y
284CONFIG_USB_MUSB_HDRC_HCD=y
285CONFIG_USB_INVENTRA_DMA=y
286
287
288#
289# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
290#
291
292#
293# may also be needed; see USB_STORAGE Help for more information
294#
295CONFIG_USB_STORAGE=y
296
297#
298# USB Miscellaneous drivers
299#
300CONFIG_USB_GADGET=y
301CONFIG_USB_GADGET_DUALSPEED=y
302CONFIG_USB_OTG_UTILS=y
303CONFIG_TWL4030_USB=y
304
305CONFIG_MMC=y
306
307#
308# MMC/SD Host Controller Drivers
309#
310CONFIG_MMC_OMAP_HS=y
311
312#
313# Real Time Clock
314#
315CONFIG_RTC_LIB=y
316CONFIG_RTC_CLASS=y
317CONFIG_RTC_DRV_TWL4030=y
318
319#
320# DOS/FAT/NT Filesystems
321#
322CONFIG_VFAT_FS=y
323
324#
325# Multimedia core support
326#
327
328CONFIG_VIDEO_OMAP3_ISP=y
329# CONFIG_VIDEO_OMAP34XX_ISP_PREVIEWER is not set
330CONFIG_VIDEO_OMAP34XX_ISP_RESIZER=y
331# CONFIG_VIDEO_HELPER_CHIPS_AUTO is not set
332
333#
334# Advanced Power Management Emulation support
335#
336CONFIG_APM_EMULATION=y
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/{{=machine}}.scc b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/{{=machine}}.scc
new file mode 100644
index 0000000000..39f87f5e84
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/files/{{=machine}}.scc
@@ -0,0 +1,7 @@
1kconf hardware {{=machine}}.cfg
2kconf non-hardware {{machine}}-non_hardware.cfg
3
4include features/usb-net/usb-net.scc
5
6kconf hardware user-config.cfg
7include user-patches.scc
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/kernel-list.noinstall b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/kernel-list.noinstall
new file mode 100644
index 0000000000..14cefa60c0
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/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/arm/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.0": }} linux-yocto-rt_3.0.bbappend b/scripts/lib/bsp/substrate/target/arch/arm/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/arm/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/arm/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.2": }} linux-yocto-rt_3.2.bbappend b/scripts/lib/bsp/substrate/target/arch/arm/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/arm/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/arm/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.0": }} linux-yocto_3.0.bbappend b/scripts/lib/bsp/substrate/target/arch/arm/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/arm/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/arm/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.2": }} linux-yocto_3.2.bbappend b/scripts/lib/bsp/substrate/target/arch/arm/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/arm/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"