summaryrefslogtreecommitdiffstats
path: root/scripts/lib/bsp/substrate/target/arch/arm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/bsp/substrate/target/arch/arm')
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/.gitignore0
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/conf/machine/{{=machine}}.conf87
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/recipes-graphics/xorg-xserver/xserver-xf86-config/{{=machine}}/{{ if xserver == "y": }} xorg.conf34
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/recipes-graphics/xorg-xserver/{{ if xserver == "y": }} xserver-xf86-config_0.1.bbappend3
-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
16 files changed, 675 insertions, 0 deletions
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/.gitignore b/scripts/lib/bsp/substrate/target/arch/arm/.gitignore
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/.gitignore
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/conf/machine/{{=machine}}.conf b/scripts/lib/bsp/substrate/target/arch/arm/conf/machine/{{=machine}}.conf
new file mode 100644
index 0000000000..101dd60dc9
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/conf/machine/{{=machine}}.conf
@@ -0,0 +1,87 @@
1#@TYPE: Machine
2#@NAME: {{=machine}}
3
4#@DESCRIPTION: Machine configuration for {{=machine}} systems
5
6{{ input type:"boolean" name:"xserver" prio:"50" msg:"Do you need support for X? (y/n)" default:"y" }}
7{{ if xserver == "y": }}
8PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg-lite"
9XSERVER = "xserver-xorg-lite \
10 xf86-input-evdev \
11 xf86-input-mouse \
12 xf86-video-omapfb \
13 xf86-input-keyboard"
14
15# Ship all kernel modules by default
16MACHINE_EXTRA_RRECOMMENDS = " kernel-modules"
17
18# Allow for MMC booting (required by the NAND-less Beagleboard XM)
19EXTRA_IMAGEDEPENDS += "u-boot x-load"
20
21# Uncomment the following line to enable the hard floating point abi. Note that
22# this breaks some binary libraries and 3D (neither of which ship with
23# meta-yocto). For maximum compatibility, leave this disabled.
24#DEFAULTTUNE ?= "cortexa8hf-neon"
25{{ input type:"choicelist" name:"tunefile" prio:"40" msg:"Which machine tuning would you like to use?" default:"tune_cortexa8" }}
26{{ input type:"choice" val:"tune_arm1136jf_s" msg:"arm1136jf-s tuning optimizations" }}
27{{ input type:"choice" val:"tune_arm920t" msg:"arm920t tuning optimizations" }}
28{{ input type:"choice" val:"tune_arm926ejs" msg:"arm926ejs tuning optimizations" }}
29{{ input type:"choice" val:"tune_arm9tdmi" msg:"arm9tdmi tuning optimizations" }}
30{{ input type:"choice" val:"tune_cortexa8" msg:"cortexa8 tuning optimizations" }}
31{{ input type:"choice" val:"tune_cortexa9" msg:"cortexa9 tuning optimizations" }}
32{{ input type:"choice" val:"tune_cortexm1" msg:"cortexm1 tuning optimizations" }}
33{{ input type:"choice" val:"tune_cortexm3" msg:"cortexm3 tuning optimizations" }}
34{{ input type:"choice" val:"tune_cortexr4" msg:"cortexr4 tuning optimizations" }}
35{{ input type:"choice" val:"tune_ep9312" msg:"ep9312 tuning optimizations" }}
36{{ input type:"choice" val:"tune_iwmmxt" msg:"iwmmxt tuning optimizations" }}
37{{ input type:"choice" val:"tune_strongarm1100" msg:"strongarm1100 tuning optimizations" }}
38{{ input type:"choice" val:"tune_xscale" msg:"xscale tuning optimizations" }}
39{{ if tunefile == "tune_arm1136jf_s": }}
40include conf/machine/include/tune-arm1136jf-s.inc
41{{ if tunefile == "tune_arm920t": }}
42include conf/machine/include/tune-arm920t.inc
43{{ if tunefile == "tune_arm926ejs": }}
44include conf/machine/include/tune-arm926ejs.inc
45{{ if tunefile == "tune_arm9tdmi": }}
46include conf/machine/include/tune-arm9tdmi.inc
47{{ if tunefile == "tune_cortexa8": }}
48include conf/machine/include/tune-cortexa8.inc
49{{ if tunefile == "tune_cortexa9": }}
50include conf/machine/include/tune-cortexa9.inc
51{{ if tunefile == "tune_cortexm1": }}
52include conf/machine/include/tune-cortexm1.inc
53{{ if tunefile == "tune_cortexm3": }}
54include conf/machine/include/tune-cortexm3.inc
55{{ if tunefile == "tune_cortexr4": }}
56include conf/machine/include/tune-cortexr4.inc
57{{ if tunefile == "tune_ep9312": }}
58include conf/machine/include/tune-ep9312.inc
59{{ if tunefile == "tune_iwmmxt": }}
60include conf/machine/include/tune-iwmmxt.inc
61{{ if tunefile == "tune_strongarm1100": }}
62include conf/machine/include/tune-strongarm1100.inc
63{{ if tunefile == "tune_xscale": }}
64include conf/machine/include/tune-xscale.inc
65
66IMAGE_FSTYPES += "tar.bz2 jffs2"
67EXTRA_IMAGECMD_jffs2 = "-lnp "
68
69# 2.6.37 and later kernels use OMAP_SERIAL, ttyO2
70# earlier kernels use ttyS2
71SERIAL_CONSOLE = "115200 ttyO2"
72
73{{ preferred_kernel = kernel_choice.split('_')[0] }}
74{{ preferred_kernel_version = kernel_choice.split('_')[1] }}
75PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}"
76PREFERRED_VERSION_{{=preferred_kernel}} ?= "{{=preferred_kernel_version}}%"
77
78KERNEL_IMAGETYPE = "uImage"
79
80{{ input type:"edit" name:"uboot_machine" prio:"40" msg:"Please specify a value for UBOOT_MACHINE:" default:"omap3_beagle_config" }}
81UBOOT_MACHINE = "{{=uboot_machine}}"
82{{ input type:"edit" name:"uboot_entrypoint" prio:"40" msg:"Please specify a value for UBOOT_ENTRYPOINT:" default:"0x80008000" }}
83UBOOT_ENTRYPOINT = "{{=uboot_entrypoint}}"
84{{ input type:"edit" name:"uboot_loadaddress" prio:"40" msg:"Please specify a value for UBOOT_LOADADDRESS:" default:"0x80008000" }}
85UBOOT_LOADADDRESS = "{{=uboot_loadaddress}}"
86
87MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat alsa"
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-graphics/xorg-xserver/xserver-xf86-config/{{=machine}}/{{ if xserver == "y": }} xorg.conf b/scripts/lib/bsp/substrate/target/arch/arm/recipes-graphics/xorg-xserver/xserver-xf86-config/{{=machine}}/{{ if xserver == "y": }} xorg.conf
new file mode 100644
index 0000000000..0335e6af76
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/recipes-graphics/xorg-xserver/xserver-xf86-config/{{=machine}}/{{ if xserver == "y": }} xorg.conf
@@ -0,0 +1,34 @@
1Section "Module"
2 Load "extmod"
3 Load "dbe"
4 Load "glx"
5 Load "freetype"
6 Load "type1"
7 Load "record"
8 Load "dri"
9EndSection
10
11Section "Monitor"
12 Identifier "Builtin Default Monitor"
13EndSection
14
15Section "Device"
16 Identifier "Builtin Default fbdev Device 0"
17 Driver "omapfb"
18EndSection
19
20Section "Screen"
21 Identifier "Builtin Default fbdev Screen 0"
22 Device "Builtin Default fbdev Device 0"
23 Monitor "Builtin Default Monitor"
24EndSection
25
26Section "ServerLayout"
27 Identifier "Builtin Default Layout"
28 Screen "Builtin Default fbdev Screen 0"
29EndSection
30
31Section "ServerFlags"
32 Option "DontZap" "0"
33 Option "AutoAddDevices" "False"
34EndSection
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-graphics/xorg-xserver/{{ if xserver == "y": }} xserver-xf86-config_0.1.bbappend b/scripts/lib/bsp/substrate/target/arch/arm/recipes-graphics/xorg-xserver/{{ if xserver == "y": }} xserver-xf86-config_0.1.bbappend
new file mode 100644
index 0000000000..4b8d0e656b
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/recipes-graphics/xorg-xserver/{{ if xserver == "y": }} xserver-xf86-config_0.1.bbappend
@@ -0,0 +1,3 @@
1THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
2FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}"], d)}:"
3
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"