diff options
author | Tom Zanussi <tom.zanussi@intel.com> | 2012-01-24 00:15:25 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-22 19:21:14 +0000 |
commit | f76161b1de427403d0288dc7772907389b56a031 (patch) | |
tree | bef2e2d2063c47d64aea7872569b93736cb47d94 /scripts | |
parent | af193ae15a2ad2e170d4a9d4bcbfff3e429784f5 (diff) | |
download | poky-f76161b1de427403d0288dc7772907389b56a031.tar.gz |
yocto-bsp: add BSP template files
BSP template files for all supported Yocto architectures, plus qemu
versions of the same.
Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
Diffstat (limited to 'scripts')
96 files changed, 2665 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": }} | ||
8 | PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg-lite" | ||
9 | XSERVER = "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 | ||
16 | MACHINE_EXTRA_RRECOMMENDS = " kernel-modules" | ||
17 | |||
18 | # Allow for MMC booting (required by the NAND-less Beagleboard XM) | ||
19 | EXTRA_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": }} | ||
40 | include conf/machine/include/tune-arm1136jf-s.inc | ||
41 | {{ if tunefile == "tune_arm920t": }} | ||
42 | include conf/machine/include/tune-arm920t.inc | ||
43 | {{ if tunefile == "tune_arm926ejs": }} | ||
44 | include conf/machine/include/tune-arm926ejs.inc | ||
45 | {{ if tunefile == "tune_arm9tdmi": }} | ||
46 | include conf/machine/include/tune-arm9tdmi.inc | ||
47 | {{ if tunefile == "tune_cortexa8": }} | ||
48 | include conf/machine/include/tune-cortexa8.inc | ||
49 | {{ if tunefile == "tune_cortexa9": }} | ||
50 | include conf/machine/include/tune-cortexa9.inc | ||
51 | {{ if tunefile == "tune_cortexm1": }} | ||
52 | include conf/machine/include/tune-cortexm1.inc | ||
53 | {{ if tunefile == "tune_cortexm3": }} | ||
54 | include conf/machine/include/tune-cortexm3.inc | ||
55 | {{ if tunefile == "tune_cortexr4": }} | ||
56 | include conf/machine/include/tune-cortexr4.inc | ||
57 | {{ if tunefile == "tune_ep9312": }} | ||
58 | include conf/machine/include/tune-ep9312.inc | ||
59 | {{ if tunefile == "tune_iwmmxt": }} | ||
60 | include conf/machine/include/tune-iwmmxt.inc | ||
61 | {{ if tunefile == "tune_strongarm1100": }} | ||
62 | include conf/machine/include/tune-strongarm1100.inc | ||
63 | {{ if tunefile == "tune_xscale": }} | ||
64 | include conf/machine/include/tune-xscale.inc | ||
65 | |||
66 | IMAGE_FSTYPES += "tar.bz2 jffs2" | ||
67 | EXTRA_IMAGECMD_jffs2 = "-lnp " | ||
68 | |||
69 | # 2.6.37 and later kernels use OMAP_SERIAL, ttyO2 | ||
70 | # earlier kernels use ttyS2 | ||
71 | SERIAL_CONSOLE = "115200 ttyO2" | ||
72 | |||
73 | {{ preferred_kernel = kernel_choice.split('_')[0] }} | ||
74 | {{ preferred_kernel_version = kernel_choice.split('_')[1] }} | ||
75 | PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}" | ||
76 | PREFERRED_VERSION_{{=preferred_kernel}} ?= "{{=preferred_kernel_version}}%" | ||
77 | |||
78 | KERNEL_IMAGETYPE = "uImage" | ||
79 | |||
80 | {{ input type:"edit" name:"uboot_machine" prio:"40" msg:"Please specify a value for UBOOT_MACHINE:" default:"omap3_beagle_config" }} | ||
81 | UBOOT_MACHINE = "{{=uboot_machine}}" | ||
82 | {{ input type:"edit" name:"uboot_entrypoint" prio:"40" msg:"Please specify a value for UBOOT_ENTRYPOINT:" default:"0x80008000" }} | ||
83 | UBOOT_ENTRYPOINT = "{{=uboot_entrypoint}}" | ||
84 | {{ input type:"edit" name:"uboot_loadaddress" prio:"40" msg:"Please specify a value for UBOOT_LOADADDRESS:" default:"0x80008000" }} | ||
85 | UBOOT_LOADADDRESS = "{{=uboot_loadaddress}}" | ||
86 | |||
87 | MACHINE_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 @@ | |||
1 | Section "Module" | ||
2 | Load "extmod" | ||
3 | Load "dbe" | ||
4 | Load "glx" | ||
5 | Load "freetype" | ||
6 | Load "type1" | ||
7 | Load "record" | ||
8 | Load "dri" | ||
9 | EndSection | ||
10 | |||
11 | Section "Monitor" | ||
12 | Identifier "Builtin Default Monitor" | ||
13 | EndSection | ||
14 | |||
15 | Section "Device" | ||
16 | Identifier "Builtin Default fbdev Device 0" | ||
17 | Driver "omapfb" | ||
18 | EndSection | ||
19 | |||
20 | Section "Screen" | ||
21 | Identifier "Builtin Default fbdev Screen 0" | ||
22 | Device "Builtin Default fbdev Device 0" | ||
23 | Monitor "Builtin Default Monitor" | ||
24 | EndSection | ||
25 | |||
26 | Section "ServerLayout" | ||
27 | Identifier "Builtin Default Layout" | ||
28 | Screen "Builtin Default fbdev Screen 0" | ||
29 | EndSection | ||
30 | |||
31 | Section "ServerFlags" | ||
32 | Option "DontZap" "0" | ||
33 | Option "AutoAddDevices" "False" | ||
34 | EndSection | ||
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 @@ | |||
1 | THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" | ||
2 | FILESPATH =. "${@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 | # | ||
4 | CONFIG_NFS_DEF_FILE_IO_SIZE=1024 | ||
5 | |||
6 | # | ||
7 | # Multiple Device Support | ||
8 | # | ||
9 | # CONFIG_MD is not set | ||
10 | |||
11 | # Kernel Features | ||
12 | # | ||
13 | CONFIG_NO_HZ=y | ||
14 | |||
15 | # | ||
16 | # CPUIdle | ||
17 | # | ||
18 | CONFIG_CPU_IDLE=y | ||
19 | CONFIG_CPU_IDLE_GOV_LADDER=y | ||
20 | CONFIG_CPU_IDLE_GOV_MENU=y | ||
21 | |||
22 | # | ||
23 | # Kernel hacking | ||
24 | # | ||
25 | CONFIG_DEBUG_FS=y | ||
26 | |||
27 | # | ||
28 | # Power management options | ||
29 | # | ||
30 | CONFIG_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 @@ | |||
1 | define KMACHINE {{=machine}} | ||
2 | define KTYPE preempt-rt | ||
3 | define KARCH arm | ||
4 | |||
5 | # no new branch required, re-use the ktypes/preempt-rt branch | ||
6 | include ktypes/preempt-rt | ||
7 | |||
8 | include {{=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 @@ | |||
1 | define KMACHINE {{=machine}} | ||
2 | define KTYPE standard | ||
3 | define KARCH arm | ||
4 | |||
5 | include ktypes/standard | ||
6 | branch {{=machine}} | ||
7 | |||
8 | include {{=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 | # | ||
4 | CONFIG_ARCH_OMAP=y | ||
5 | CONFIG_HAVE_PWM=y | ||
6 | CONFIG_ARM_L1_CACHE_SHIFT_6=y | ||
7 | |||
8 | # | ||
9 | # TI OMAP Implementations | ||
10 | # | ||
11 | # CONFIG_ARCH_OMAP2 is not set | ||
12 | CONFIG_ARCH_OMAP3=y | ||
13 | |||
14 | # | ||
15 | # TI OMAP Common Features | ||
16 | # | ||
17 | CONFIG_ARCH_OMAP2PLUS=y | ||
18 | |||
19 | # | ||
20 | # OMAP Feature Selections | ||
21 | # | ||
22 | CONFIG_OMAP_32K_TIMER=y | ||
23 | CONFIG_OMAP_32K_TIMER_HZ=128 | ||
24 | CONFIG_OMAP_DM_TIMER=y | ||
25 | CONFIG_OMAP_RESET_CLOCKS=y | ||
26 | CONFIG_OMAP_SMARTREFLEX=y | ||
27 | CONFIG_OMAP_SMARTREFLEX_CLASS3=y | ||
28 | CONFIG_OMAP_MBOX_FWK=m | ||
29 | CONFIG_OMAP_MBOX_KFIFO_SIZE=256 | ||
30 | CONFIG_OMAP_IOMMU=m | ||
31 | CONFIG_OMAP_IOMMU_DEBUG=m | ||
32 | |||
33 | # | ||
34 | # OMAP Board Type | ||
35 | # | ||
36 | CONFIG_MACH_OMAP3_BEAGLE=y | ||
37 | |||
38 | # | ||
39 | # Processor Features | ||
40 | # | ||
41 | CONFIG_ARM_THUMBEE=y | ||
42 | CONFIG_ARM_L1_CACHE_SHIFT=6 | ||
43 | CONFIG_ARM_ERRATA_430973=y | ||
44 | |||
45 | # | ||
46 | # Kernel Features | ||
47 | # | ||
48 | CONFIG_LEDS=y | ||
49 | |||
50 | |||
51 | # | ||
52 | # Serial drivers | ||
53 | # | ||
54 | CONFIG_SERIAL_8250=y | ||
55 | CONFIG_SERIAL_8250_CONSOLE=y | ||
56 | CONFIG_SERIAL_8250_EXTENDED=y | ||
57 | CONFIG_SERIAL_8250_RSA=y | ||
58 | CONFIG_SERIAL_8250_MANY_PORTS=y | ||
59 | CONFIG_SERIAL_8250_SHARE_IRQ=y | ||
60 | CONFIG_SERIAL_8250_DETECT_IRQ=y | ||
61 | CONFIG_SERIAL_8250_RUNTIME_UARTS=4 | ||
62 | |||
63 | # | ||
64 | # At least one emulation must be selected | ||
65 | # | ||
66 | CONFIG_VFP=y | ||
67 | CONFIG_NEON=y | ||
68 | |||
69 | # | ||
70 | # Power management options | ||
71 | # | ||
72 | CONFIG_PM=y | ||
73 | CONFIG_PM_RUNTIME=y | ||
74 | |||
75 | # | ||
76 | # Generic Driver Options | ||
77 | # | ||
78 | CONFIG_MTD=y | ||
79 | CONFIG_MTD_CONCAT=y | ||
80 | CONFIG_MTD_PARTITIONS=y | ||
81 | CONFIG_MTD_CMDLINE_PARTS=y | ||
82 | # | ||
83 | # User Modules And Translation Layers | ||
84 | # | ||
85 | CONFIG_MTD_CHAR=y | ||
86 | CONFIG_MTD_BLKDEVS=y | ||
87 | CONFIG_MTD_BLOCK=y | ||
88 | |||
89 | # | ||
90 | # RAM/ROM/Flash chip drivers | ||
91 | # | ||
92 | CONFIG_MTD_CFI=y | ||
93 | CONFIG_MTD_CFI_INTELEXT=y | ||
94 | |||
95 | # | ||
96 | # Disk-On-Chip Device Drivers | ||
97 | # | ||
98 | CONFIG_MTD_NAND=y | ||
99 | |||
100 | CONFIG_MTD_NAND_OMAP2=y | ||
101 | # CONFIG_MTD_NAND_OMAP_PREFETCH is not set | ||
102 | |||
103 | CONFIG_MTD_UBI=y | ||
104 | |||
105 | # | ||
106 | # SCSI device support | ||
107 | # | ||
108 | CONFIG_SCSI=y | ||
109 | |||
110 | # | ||
111 | # SCSI support type (disk, tape, CD-ROM) | ||
112 | # | ||
113 | CONFIG_BLK_DEV_SD=y | ||
114 | |||
115 | # | ||
116 | # Ethernet (10 or 100Mbit) | ||
117 | # | ||
118 | CONFIG_SMSC911X=y | ||
119 | |||
120 | # | ||
121 | # Userland interfaces | ||
122 | # | ||
123 | CONFIG_INPUT_EVDEV=y | ||
124 | |||
125 | # | ||
126 | # Input Device Drivers | ||
127 | # | ||
128 | CONFIG_KEYBOARD_TWL4030=y | ||
129 | CONFIG_INPUT_TOUCHSCREEN=y | ||
130 | CONFIG_TOUCHSCREEN_ADS7846=y | ||
131 | |||
132 | # | ||
133 | # Miscellaneous I2C Chip support | ||
134 | # | ||
135 | CONFIG_I2C=y | ||
136 | CONFIG_I2C_OMAP=y | ||
137 | CONFIG_SPI=y | ||
138 | CONFIG_SPI_MASTER=y | ||
139 | CONFIG_SPI_OMAP24XX=y | ||
140 | |||
141 | # | ||
142 | # I2C GPIO expanders: | ||
143 | # | ||
144 | CONFIG_GPIO_TWL4030=y | ||
145 | |||
146 | # | ||
147 | # SPI GPIO expanders: | ||
148 | # | ||
149 | CONFIG_OMAP_WATCHDOG=y | ||
150 | CONFIG_WATCHDOG_NOWAYOUT=y | ||
151 | |||
152 | # | ||
153 | # Multifunction device drivers | ||
154 | # | ||
155 | CONFIG_TWL4030_CORE=y | ||
156 | CONFIG_REGULATOR=y | ||
157 | CONFIG_REGULATOR_DUMMY=y | ||
158 | CONFIG_REGULATOR_TWL4030=y | ||
159 | |||
160 | # | ||
161 | # Graphics support | ||
162 | # | ||
163 | CONFIG_FB=y | ||
164 | CONFIG_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 | ||
170 | CONFIG_FB_CFB_FILLRECT=y | ||
171 | CONFIG_FB_CFB_COPYAREA=y | ||
172 | CONFIG_FB_CFB_IMAGEBLIT=y | ||
173 | # CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set | ||
174 | CONFIG_FB_SYS_FILLRECT=m | ||
175 | CONFIG_FB_SYS_COPYAREA=m | ||
176 | CONFIG_FB_SYS_IMAGEBLIT=m | ||
177 | # CONFIG_FB_FOREIGN_ENDIAN is not set | ||
178 | CONFIG_FB_SYS_FOPS=m | ||
179 | CONFIG_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 | ||
183 | CONFIG_FB_MODE_HELPERS=y | ||
184 | # CONFIG_FB_TILEBLITTING is not set | ||
185 | |||
186 | # | ||
187 | # Frame buffer hardware drivers | ||
188 | # | ||
189 | CONFIG_FB_OMAP=y | ||
190 | CONFIG_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 | ||
198 | CONFIG_OMAP2_VRAM=y | ||
199 | CONFIG_OMAP2_VRFB=y | ||
200 | CONFIG_OMAP2_DSS=y | ||
201 | CONFIG_OMAP2_VRAM_SIZE=14 | ||
202 | CONFIG_OMAP2_DSS_DEBUG_SUPPORT=y | ||
203 | # CONFIG_OMAP2_DSS_COLLECT_IRQ_STATS is not set | ||
204 | CONFIG_OMAP2_DSS_DPI=y | ||
205 | # CONFIG_OMAP2_DSS_RFBI is not set | ||
206 | CONFIG_OMAP2_DSS_VENC=y | ||
207 | # CONFIG_OMAP2_DSS_SDI is not set | ||
208 | CONFIG_OMAP2_DSS_DSI=y | ||
209 | CONFIG_OMAP2_DSS_USE_DSI_PLL=y | ||
210 | # CONFIG_OMAP2_DSS_FAKE_VSYNC is not set | ||
211 | CONFIG_OMAP2_DSS_MIN_FCK_PER_PCK=0 | ||
212 | CONFIG_FB_OMAP2=y | ||
213 | CONFIG_FB_OMAP2_DEBUG_SUPPORT=y | ||
214 | CONFIG_FB_OMAP2_NUM_FBS=2 | ||
215 | |||
216 | # | ||
217 | # OMAP2/3 Display Device Drivers | ||
218 | # | ||
219 | CONFIG_PANEL_GENERIC=y | ||
220 | CONFIG_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 | ||
225 | CONFIG_PANEL_TOPPOLY_TDO35S=m | ||
226 | CONFIG_PANEL_TPO_TD043MTEA1=m | ||
227 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
228 | CONFIG_BACKLIGHT_CLASS_DEVICE=y | ||
229 | |||
230 | # | ||
231 | # Display device support | ||
232 | # | ||
233 | CONFIG_DISPLAY_SUPPORT=y | ||
234 | CONFIG_DUMMY_CONSOLE=y | ||
235 | # CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY is not set | ||
236 | CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y | ||
237 | # CONFIG_FONTS is not set | ||
238 | CONFIG_FONT_8x8=y | ||
239 | CONFIG_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 | # | ||
246 | CONFIG_FRAMEBUFFER_CONSOLE=y | ||
247 | CONFIG_LOGO=y | ||
248 | # CONFIG_VGA_CONSOLE is not set | ||
249 | |||
250 | CONFIG_SOUND=y | ||
251 | CONFIG_SND=y | ||
252 | CONFIG_SND_SOC=y | ||
253 | CONFIG_SND_OMAP_SOC=y | ||
254 | CONFIG_SND_OMAP_SOC_OMAP3_BEAGLE=y | ||
255 | |||
256 | # | ||
257 | # USB Input Devices | ||
258 | # | ||
259 | CONFIG_USB=y | ||
260 | CONFIG_USB_SUPPORT=y | ||
261 | |||
262 | # | ||
263 | # Miscellaneous USB options | ||
264 | # | ||
265 | CONFIG_USB_DEVICEFS=y | ||
266 | CONFIG_USB_OTG=y | ||
267 | # CONFIG_USB_OTG_WHITELIST is not set | ||
268 | |||
269 | # | ||
270 | # USB Host Controller Drivers | ||
271 | # | ||
272 | CONFIG_USB_EHCI_HCD=y | ||
273 | CONFIG_USB_EHCI_TT_NEWSCHED=y | ||
274 | CONFIG_USB_EHCI_ROOT_HUB_TT=y | ||
275 | CONFIG_USB_MUSB_HDRC=y | ||
276 | CONFIG_USB_MUSB_OMAP2PLUS=y | ||
277 | CONFIG_USB_MUSB_SOC=y | ||
278 | |||
279 | # | ||
280 | # OMAP 343x high speed USB support | ||
281 | # | ||
282 | CONFIG_USB_MUSB_OTG=y | ||
283 | CONFIG_USB_GADGET_MUSB_HDRC=y | ||
284 | CONFIG_USB_MUSB_HDRC_HCD=y | ||
285 | CONFIG_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 | # | ||
295 | CONFIG_USB_STORAGE=y | ||
296 | |||
297 | # | ||
298 | # USB Miscellaneous drivers | ||
299 | # | ||
300 | CONFIG_USB_GADGET=y | ||
301 | CONFIG_USB_GADGET_DUALSPEED=y | ||
302 | CONFIG_USB_OTG_UTILS=y | ||
303 | CONFIG_TWL4030_USB=y | ||
304 | |||
305 | CONFIG_MMC=y | ||
306 | |||
307 | # | ||
308 | # MMC/SD Host Controller Drivers | ||
309 | # | ||
310 | CONFIG_MMC_OMAP_HS=y | ||
311 | |||
312 | # | ||
313 | # Real Time Clock | ||
314 | # | ||
315 | CONFIG_RTC_LIB=y | ||
316 | CONFIG_RTC_CLASS=y | ||
317 | CONFIG_RTC_DRV_TWL4030=y | ||
318 | |||
319 | # | ||
320 | # DOS/FAT/NT Filesystems | ||
321 | # | ||
322 | CONFIG_VFAT_FS=y | ||
323 | |||
324 | # | ||
325 | # Multimedia core support | ||
326 | # | ||
327 | |||
328 | CONFIG_VIDEO_OMAP3_ISP=y | ||
329 | # CONFIG_VIDEO_OMAP34XX_ISP_PREVIEWER is not set | ||
330 | CONFIG_VIDEO_OMAP34XX_ISP_RESIZER=y | ||
331 | # CONFIG_VIDEO_HELPER_CHIPS_AUTO is not set | ||
332 | |||
333 | # | ||
334 | # Advanced Power Management Emulation support | ||
335 | # | ||
336 | CONFIG_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 @@ | |||
1 | kconf hardware {{=machine}}.cfg | ||
2 | kconf non-hardware {{machine}}-non_hardware.cfg | ||
3 | |||
4 | include features/usb-net/usb-net.scc | ||
5 | |||
6 | kconf hardware user-config.cfg | ||
7 | include 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 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
2 | |||
3 | PR := "${PR}.1" | ||
4 | |||
5 | COMPATIBLE_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": }} | ||
16 | KBRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
17 | {{ if need_new_kbranch == "n": }} | ||
18 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
19 | |||
20 | {{ if need_new_kbranch == "y": }} | ||
21 | YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
22 | |||
23 | KMACHINE_{{=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": }} | ||
27 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
28 | |||
29 | SRC_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 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
2 | |||
3 | PR := "${PR}.1" | ||
4 | |||
5 | COMPATIBLE_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": }} | ||
16 | KBRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
17 | {{ if need_new_kbranch == "n": }} | ||
18 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
19 | |||
20 | {{ if need_new_kbranch == "y": }} | ||
21 | YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
22 | |||
23 | KMACHINE_{{=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": }} | ||
27 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
28 | |||
29 | SRC_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 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
2 | |||
3 | PR := "${PR}.1" | ||
4 | |||
5 | COMPATIBLE_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": }} | ||
16 | KBRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
17 | {{ if need_new_kbranch == "n": }} | ||
18 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
19 | |||
20 | KMACHINE_{{=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": }} | ||
24 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
25 | |||
26 | {{ if need_new_kbranch == "y": }} | ||
27 | YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
28 | {{ if need_new_kbranch == "n": }} | ||
29 | YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
30 | |||
31 | SRC_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 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
2 | |||
3 | PR := "${PR}.1" | ||
4 | |||
5 | COMPATIBLE_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": }} | ||
16 | KBRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
17 | {{ if need_new_kbranch == "n": }} | ||
18 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
19 | |||
20 | {{ if need_new_kbranch == "y": }} | ||
21 | YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
22 | |||
23 | KMACHINE_{{=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": }} | ||
27 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
28 | |||
29 | SRC_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" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/common/COPYING.MIT b/scripts/lib/bsp/substrate/target/arch/common/COPYING.MIT new file mode 100644 index 0000000000..fb950dc69f --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/common/COPYING.MIT | |||
@@ -0,0 +1,17 @@ | |||
1 | Permission is hereby granted, free of charge, to any person obtaining a copy | ||
2 | of this software and associated documentation files (the "Software"), to deal | ||
3 | in the Software without restriction, including without limitation the rights | ||
4 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
5 | copies of the Software, and to permit persons to whom the Software is | ||
6 | furnished to do so, subject to the following conditions: | ||
7 | |||
8 | The above copyright notice and this permission notice shall be included in | ||
9 | all copies or substantial portions of the Software. | ||
10 | |||
11 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
12 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
13 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
14 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
15 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
16 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
17 | THE SOFTWARE. | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/common/README b/scripts/lib/bsp/substrate/target/arch/common/README new file mode 100644 index 0000000000..928659f302 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/common/README | |||
@@ -0,0 +1,118 @@ | |||
1 | This README file contains information on building the meta-{{=machine}} | ||
2 | BSP layer, and booting the images contained in the /binary directory. | ||
3 | Please see the corresponding sections below for details. | ||
4 | |||
5 | |||
6 | Dependencies | ||
7 | ============ | ||
8 | |||
9 | This layer depends on: | ||
10 | |||
11 | URI: git://git.openembedded.org/bitbake | ||
12 | branch: master | ||
13 | |||
14 | URI: git://git.openembedded.org/openembedded-core | ||
15 | layers: meta | ||
16 | branch: master | ||
17 | |||
18 | URI: git://git.yoctoproject.org/xxxx | ||
19 | layers: xxxx | ||
20 | branch: master | ||
21 | |||
22 | |||
23 | Patches | ||
24 | ======= | ||
25 | |||
26 | Please submit any patches against this BSP to the Yocto mailing list | ||
27 | (yocto@yoctoproject.org) and cc: the maintainer: | ||
28 | |||
29 | Maintainer: XXX YYYYYY <xxx.yyyyyy@zzzzz.com> | ||
30 | |||
31 | Please see the meta-xxxx/MAINTAINERS file for more details. | ||
32 | |||
33 | |||
34 | Table of Contents | ||
35 | ================= | ||
36 | |||
37 | I. Building the meta-{{=machine}} BSP layer | ||
38 | II. Booting the images in /binary | ||
39 | |||
40 | |||
41 | I. Building the meta-{{=machine}} BSP layer | ||
42 | ======================================== | ||
43 | |||
44 | --- replace with specific instructions for your layer --- | ||
45 | |||
46 | In order to build an image with BSP support for a given release, you | ||
47 | need to download the corresponding BSP tarball from the 'Board Support | ||
48 | Package (BSP) Downloads' page of the Yocto Project website. | ||
49 | |||
50 | Having done that, and assuming you extracted the BSP tarball contents | ||
51 | at the top-level of your yocto build tree, you can build a | ||
52 | {{=machine}} image by adding the location of the meta-{{=machine}} | ||
53 | layer to bblayers.conf, along with any other layers needed (to access | ||
54 | common metadata shared between BSPs) e.g.: | ||
55 | |||
56 | yocto/meta-xxxx \ | ||
57 | yocto/meta-xxxx/meta-{{=machine}} \ | ||
58 | |||
59 | To enable the {{=machine}} layer, add the {{=machine}} MACHINE to local.conf: | ||
60 | |||
61 | MACHINE ?= "{{=machine}}" | ||
62 | |||
63 | You should then be able to build a {{=machine}} image as such: | ||
64 | |||
65 | $ source oe-init-build-env | ||
66 | $ bitbake core-image-sato | ||
67 | |||
68 | At the end of a successful build, you should have a live image that | ||
69 | you can boot from a USB flash drive (see instructions on how to do | ||
70 | that below, in the section 'Booting the images from /binary'). | ||
71 | |||
72 | As an alternative to downloading the BSP tarball, you can also work | ||
73 | directly from the meta-xxxx git repository. For each BSP in the | ||
74 | 'meta-xxxx' repository, there are multiple branches, one corresponding | ||
75 | to each major release starting with 'laverne' (0.90), in addition to | ||
76 | the latest code which tracks the current master (note that not all | ||
77 | BSPs are present in every release). Instead of extracting a BSP | ||
78 | tarball at the top level of your yocto build tree, you can | ||
79 | equivalently check out the appropriate branch from the meta-xxxx | ||
80 | repository at the same location. | ||
81 | |||
82 | |||
83 | II. Booting the images in /binary | ||
84 | ================================= | ||
85 | |||
86 | --- replace with specific instructions for your platform --- | ||
87 | |||
88 | This BSP contains bootable live images, which can be used to directly | ||
89 | boot Yocto off of a USB flash drive. | ||
90 | |||
91 | Under Linux, insert a USB flash drive. Assuming the USB flash drive | ||
92 | takes device /dev/sdf, use dd to copy the live image to it. For | ||
93 | example: | ||
94 | |||
95 | # dd if=core-image-sato-{{=machine}}-20101207053738.hddimg of=/dev/sdf | ||
96 | # sync | ||
97 | # eject /dev/sdf | ||
98 | |||
99 | This should give you a bootable USB flash device. Insert the device | ||
100 | into a bootable USB socket on the target, and power on. This should | ||
101 | result in a system booted to the Sato graphical desktop. | ||
102 | |||
103 | If you want a terminal, use the arrows at the top of the UI to move to | ||
104 | different pages of available applications, one of which is named | ||
105 | 'Terminal'. Clicking that should give you a root terminal. | ||
106 | |||
107 | If you want to ssh into the system, you can use the root terminal to | ||
108 | ifconfig the IP address and use that to ssh in. The root password is | ||
109 | empty, so to log in type 'root' for the user name and hit 'Enter' at | ||
110 | the Password prompt: and you should be in. | ||
111 | |||
112 | ---- | ||
113 | |||
114 | If you find you're getting corrupt images on the USB (it doesn't show | ||
115 | the syslinux boot: prompt, or the boot: prompt contains strange | ||
116 | characters), try doing this first: | ||
117 | |||
118 | # dd if=/dev/zero of=/dev/sdf bs=1M count=512 | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/common/README.sources b/scripts/lib/bsp/substrate/target/arch/common/README.sources new file mode 100644 index 0000000000..3c4cb7b435 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/common/README.sources | |||
@@ -0,0 +1,17 @@ | |||
1 | The sources for the packages comprising the images shipped with this | ||
2 | BSP can be found at the following location: | ||
3 | |||
4 | http://downloads.yoctoproject.org/mirror/sources/ | ||
5 | |||
6 | The metadata used to generate the images shipped with this BSP, in | ||
7 | addition to the code contained in this BSP, can be found at the | ||
8 | following location: | ||
9 | |||
10 | http://www.yoctoproject.org/downloads/yocto-1.1/poky-edison-6.0.tar.bz2 | ||
11 | |||
12 | The metadata used to generate the images shipped with this BSP, in | ||
13 | addition to the code contained in this BSP, can also be found at the | ||
14 | following locations: | ||
15 | |||
16 | git://git.yoctoproject.org/poky.git | ||
17 | git://git.yoctoproject.org/meta-xxxx | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/common/binary/.gitignore b/scripts/lib/bsp/substrate/target/arch/common/binary/.gitignore new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/common/binary/.gitignore | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/common/conf/layer.conf b/scripts/lib/bsp/substrate/target/arch/common/conf/layer.conf new file mode 100644 index 0000000000..921d976dce --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/common/conf/layer.conf | |||
@@ -0,0 +1,10 @@ | |||
1 | # We have a conf and classes directory, add to BBPATH | ||
2 | BBPATH := "${BBPATH}:${LAYERDIR}" | ||
3 | |||
4 | # We have a recipes directory, add to BBFILES | ||
5 | BBFILES := "${BBFILES} ${LAYERDIR}/recipes-*/*/*.bb \ | ||
6 | ${LAYERDIR}/recipes-*/*/*.bbappend" | ||
7 | |||
8 | BBFILE_COLLECTIONS += "{{=machine}}" | ||
9 | BBFILE_PATTERN_{{=machine}} := "^${LAYERDIR}/" | ||
10 | BBFILE_PRIORITY_{{=machine}} = "6" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/common/recipes-bsp/formfactor/formfactor/{{=machine}}/machconfig b/scripts/lib/bsp/substrate/target/arch/common/recipes-bsp/formfactor/formfactor/{{=machine}}/machconfig new file mode 100644 index 0000000000..3b85d3821f --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/common/recipes-bsp/formfactor/formfactor/{{=machine}}/machconfig | |||
@@ -0,0 +1,5 @@ | |||
1 | # Assume a USB mouse and keyboard are connected | ||
2 | {{ input type:"boolean" name:"touchscreen" msg:"Does your BSP have a touchscreen? (y/n)" default:"n" }} | ||
3 | HAVE_TOUCHSCREEN={{=touchscreen}} | ||
4 | {{ input type:"boolean" name:"keyboard" msg:"Does your BSP have a keyboard? (y/n)" default:"y" }} | ||
5 | HAVE_KEYBOARD={{=keyboard}} | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/common/recipes-bsp/formfactor/formfactor_0.0.bbappend b/scripts/lib/bsp/substrate/target/arch/common/recipes-bsp/formfactor/formfactor_0.0.bbappend new file mode 100644 index 0000000000..54da0ffd3e --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/common/recipes-bsp/formfactor/formfactor_0.0.bbappend | |||
@@ -0,0 +1,3 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
2 | |||
3 | PRINC = "1" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/common/recipes-core/tasks/task-core-tools-profile.bbappend b/scripts/lib/bsp/substrate/target/arch/common/recipes-core/tasks/task-core-tools-profile.bbappend new file mode 100644 index 0000000000..9e8e5c8cd3 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/common/recipes-core/tasks/task-core-tools-profile.bbappend | |||
@@ -0,0 +1,2 @@ | |||
1 | RRECOMMENDS_task-core-tools-profile_append_{{=machine}} = " systemtap" | ||
2 | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/conf/machine/{{=machine}}.conf b/scripts/lib/bsp/substrate/target/arch/i386/conf/machine/{{=machine}}.conf new file mode 100644 index 0000000000..ab491b26a6 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/i386/conf/machine/{{=machine}}.conf | |||
@@ -0,0 +1,48 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: {{=machine}} | ||
3 | |||
4 | #@DESCRIPTION: Machine configuration for {{=machine}} systems | ||
5 | |||
6 | {{ preferred_kernel = kernel_choice.split('_')[0] }} | ||
7 | {{ preferred_kernel_version = kernel_choice.split('_')[1] }} | ||
8 | PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}" | ||
9 | PREFERRED_VERSION_{{=preferred_kernel}} ?= "{{=preferred_kernel_version}}%" | ||
10 | |||
11 | {{ input type:"choicelist" name:"tunefile" prio:"40" msg:"Which machine tuning would you like to use?" default:"tune_core2" }} | ||
12 | {{ input type:"choice" val:"tune_atom" msg:"Atom tuning optimizations" }} | ||
13 | {{ input type:"choice" val:"tune_core2" msg:"Core2 tuning optimizations" }} | ||
14 | {{ if tunefile == "tune_atom": }} | ||
15 | include conf/machine/include/tune-atom.inc | ||
16 | {{ if tunefile == "tune_core2": }} | ||
17 | include conf/machine/include/tune-core2.inc | ||
18 | |||
19 | require conf/machine/include/ia32-base.inc | ||
20 | |||
21 | {{ input type:"boolean" name:"xserver" prio:"50" msg:"Do you need support for X? (y/n)" default:"y" }} | ||
22 | |||
23 | {{ if xserver == "y": }} | ||
24 | {{ input type:"choicelist" name:"xserver_choice" prio:"50" msg:"Please select an xserver for this machine:" default:"xserver_i915" }} | ||
25 | |||
26 | {{ input type:"choice" val:"xserver_vesa" msg:"VESA xserver support" }} | ||
27 | {{ input type:"choice" val:"xserver_emgd" msg:"EMGD xserver support (proprietary)" }} | ||
28 | {{ input type:"choice" val:"xserver_i915" msg:"i915 xserver support" }} | ||
29 | |||
30 | {{ if xserver == "y": }} | ||
31 | XSERVER ?= "${XSERVER_IA32_BASE} \ | ||
32 | ${XSERVER_IA32_EXT} \ | ||
33 | {{ if xserver == "y" and xserver_choice == "xserver_vesa": }} | ||
34 | ${XSERVER_IA32_VESA} \ | ||
35 | {{ if xserver == "y" and xserver_choice == "xserver_emgd": }} | ||
36 | ${XSERVER_IA32_EMGD} \ | ||
37 | {{ if xserver == "y" and xserver_choice == "xserver_i915": }} | ||
38 | ${XSERVER_IA32_I915} \ | ||
39 | {{ if xserver == "y": }} | ||
40 | " | ||
41 | |||
42 | {{ if xserver == "y" and xserver_choice == "xserver_emgd": }} | ||
43 | PREFERRED_VERSION_xserver-xorg ?= "1.9.3" | ||
44 | PREFERRED_VERSION_mesa-dri ?= "7.11" | ||
45 | PREFERRED_VERSION_emgd-driver-bin ?= "1.8" | ||
46 | |||
47 | {{ if xserver == "y" and xserver_choice == "xserver_vesa" or xserver_choice == "xserver_emgd": }} | ||
48 | APPEND += "video=vesafb vga=0x318" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-graphics/xorg-xserver/xserver-xf86-config/{{=machine}}/{{ if xserver_choice == "xserver_emgd": }} xorg.conf b/scripts/lib/bsp/substrate/target/arch/i386/recipes-graphics/xorg-xserver/xserver-xf86-config/{{=machine}}/{{ if xserver_choice == "xserver_emgd": }} xorg.conf new file mode 100644 index 0000000000..662f60f349 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/i386/recipes-graphics/xorg-xserver/xserver-xf86-config/{{=machine}}/{{ if xserver_choice == "xserver_emgd": }} xorg.conf | |||
@@ -0,0 +1,48 @@ | |||
1 | ## | ||
2 | ## X Config options generated from CED | ||
3 | ## x11 conf skeleton | ||
4 | ## DriverVer= | ||
5 | ## | ||
6 | |||
7 | Section "Screen" | ||
8 | Identifier "Screen0" | ||
9 | Device "IntelEMGD-0" | ||
10 | Monitor "Monitor0" | ||
11 | SubSection "Display" | ||
12 | EndSubSection | ||
13 | EndSection | ||
14 | |||
15 | # Primary (First/only) display | ||
16 | Section "Device" | ||
17 | Identifier "IntelEMGD-0" | ||
18 | Driver "emgd" | ||
19 | VendorName "Intel(R) DEG" | ||
20 | BoardName "Embedded Graphics" | ||
21 | BusID "0:2:0" | ||
22 | Screen 0 | ||
23 | Option "PcfVersion" "1792" | ||
24 | Option "ConfigId" "1" | ||
25 | Option "ALL/1/name" "e6xx" | ||
26 | Option "ALL/1/General/PortOrder" "24000" | ||
27 | Option "ALL/1/General/DisplayConfig" "1" | ||
28 | Option "ALL/1/General/DisplayDetect" "1" | ||
29 | Option "ALL/1/General/TuningWA" "1" | ||
30 | Option "ALL/1/Port/4/General/name" "lvds" | ||
31 | Option "ALL/1/Port/4/General/EdidAvail" "3" | ||
32 | Option "ALL/1/Port/4/General/EdidNotAvail" "1" | ||
33 | Option "ALL/1/Port/4/General/Rotation" "0" | ||
34 | Option "ALL/1/Port/4/General/Edid" "0" | ||
35 | EndSection | ||
36 | |||
37 | Section "ServerLayout" | ||
38 | Identifier "Default Layout" | ||
39 | Screen 0 "Screen0" 0 0 | ||
40 | # InputDevice "Mouse0" "CorePointer" | ||
41 | # InputDevice "Keyboard0" "CoreKeyboard" | ||
42 | # InputDevice "DevInputMice" "SendCoreEvents" | ||
43 | EndSection | ||
44 | |||
45 | Section "ServerFlags" | ||
46 | Option "DontZap" "0" | ||
47 | Option "AutoAddDevices" "False" | ||
48 | EndSection | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-graphics/xorg-xserver/xserver-xf86-config/{{=machine}}/{{ if xserver_choice == "xserver_i915": }} xorg.conf b/scripts/lib/bsp/substrate/target/arch/i386/recipes-graphics/xorg-xserver/xserver-xf86-config/{{=machine}}/{{ if xserver_choice == "xserver_i915": }} xorg.conf new file mode 100644 index 0000000000..96b94b46c7 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/i386/recipes-graphics/xorg-xserver/xserver-xf86-config/{{=machine}}/{{ if xserver_choice == "xserver_i915": }} xorg.conf | |||
@@ -0,0 +1,26 @@ | |||
1 | Section "Device" | ||
2 | Identifier "Intel Graphics Driver" | ||
3 | Driver "intel" | ||
4 | EndSection | ||
5 | |||
6 | Section "Monitor" | ||
7 | Identifier "Generic Monitor" | ||
8 | Option "DPMS" | ||
9 | EndSection | ||
10 | |||
11 | Section "Screen" | ||
12 | Identifier "Default Screen" | ||
13 | Device "Intel Graphics Driver" | ||
14 | Monitor "Generic Monitor" | ||
15 | DefaultDepth 24 | ||
16 | EndSection | ||
17 | |||
18 | Section "ServerLayout" | ||
19 | Identifier "Default Layout" | ||
20 | Screen "Default Screen" | ||
21 | EndSection | ||
22 | |||
23 | Section "ServerFlags" | ||
24 | Option "DontZap" "0" | ||
25 | Option "AutoAddDevices" "False" | ||
26 | EndSection | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-graphics/xorg-xserver/xserver-xf86-config/{{=machine}}/{{ if xserver_choice == "xserver_vesa": }} xorg.conf b/scripts/lib/bsp/substrate/target/arch/i386/recipes-graphics/xorg-xserver/xserver-xf86-config/{{=machine}}/{{ if xserver_choice == "xserver_vesa": }} xorg.conf new file mode 100644 index 0000000000..da4fc3c643 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/i386/recipes-graphics/xorg-xserver/xserver-xf86-config/{{=machine}}/{{ if xserver_choice == "xserver_vesa": }} xorg.conf | |||
@@ -0,0 +1,26 @@ | |||
1 | Section "Device" | ||
2 | Identifier "Generic VESA" | ||
3 | Driver "vesa" | ||
4 | EndSection | ||
5 | |||
6 | Section "Monitor" | ||
7 | Identifier "Generic Monitor" | ||
8 | Option "DPMS" | ||
9 | EndSection | ||
10 | |||
11 | Section "Screen" | ||
12 | Identifier "Default Screen" | ||
13 | Device "Generic VESA" | ||
14 | Monitor "Generic Monitor" | ||
15 | DefaultDepth 24 | ||
16 | EndSection | ||
17 | |||
18 | Section "ServerLayout" | ||
19 | Identifier "Default Layout" | ||
20 | Screen "Default Screen" | ||
21 | EndSection | ||
22 | |||
23 | Section "ServerFlags" | ||
24 | Option "DontZap" "0" | ||
25 | Option "AutoAddDevices" "False" | ||
26 | EndSection | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-graphics/xorg-xserver/{{ if xserver == "y": }} xserver-xf86-config_0.1.bbappend b/scripts/lib/bsp/substrate/target/arch/i386/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/i386/recipes-graphics/xorg-xserver/{{ if xserver == "y": }} xserver-xf86-config_0.1.bbappend | |||
@@ -0,0 +1,3 @@ | |||
1 | THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" | ||
2 | FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}"], d)}:" | ||
3 | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/user-config.cfg b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/user-config.cfg new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/user-config.cfg | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/user-patches.scc b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/user-patches.scc new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/user-patches.scc | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/{{=machine}}-preempt-rt.scc b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/{{=machine}}-preempt-rt.scc new file mode 100644 index 0000000000..9fb800260f --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/{{=machine}}-preempt-rt.scc | |||
@@ -0,0 +1,8 @@ | |||
1 | define KMACHINE {{=machine}} | ||
2 | define KTYPE preempt-rt | ||
3 | define KARCH i386 | ||
4 | |||
5 | # no new branch required, re-use the ktypes/preempt-rt branch | ||
6 | include ktypes/preempt-rt | ||
7 | |||
8 | include {{=machine}}.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/{{=machine}}-standard.scc b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/{{=machine}}-standard.scc new file mode 100644 index 0000000000..28c353bf35 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/{{=machine}}-standard.scc | |||
@@ -0,0 +1,8 @@ | |||
1 | define KMACHINE {{=machine}} | ||
2 | define KTYPE standard | ||
3 | define KARCH i386 | ||
4 | |||
5 | include ktypes/standard | ||
6 | branch {{=machine}} | ||
7 | |||
8 | include {{=machine}}.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/{{=machine}}.cfg b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/{{=machine}}.cfg new file mode 100644 index 0000000000..e93c0b8a08 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/{{=machine}}.cfg | |||
@@ -0,0 +1,54 @@ | |||
1 | CONFIG_X86_32=y | ||
2 | CONFIG_MATOM=y | ||
3 | CONFIG_PRINTK=y | ||
4 | |||
5 | # Basic hardware support for the box - network, USB, PCI, sound | ||
6 | CONFIG_NETDEVICES=y | ||
7 | CONFIG_ATA=y | ||
8 | CONFIG_ATA_GENERIC=y | ||
9 | CONFIG_ATA_SFF=y | ||
10 | CONFIG_PCI=y | ||
11 | CONFIG_MMC=y | ||
12 | CONFIG_MMC_SDHCI=y | ||
13 | CONFIG_USB_SUPPORT=y | ||
14 | CONFIG_USB=y | ||
15 | CONFIG_USB_ARCH_HAS_EHCI=y | ||
16 | CONFIG_R8169=y | ||
17 | CONFIG_PATA_SCH=y | ||
18 | CONFIG_MMC_SDHCI_PCI=y | ||
19 | CONFIG_USB_EHCI_HCD=y | ||
20 | CONFIG_PCIEPORTBUS=y | ||
21 | CONFIG_NET=y | ||
22 | CONFIG_USB_UHCI_HCD=y | ||
23 | CONFIG_USB_OHCI_HCD=y | ||
24 | CONFIG_BLK_DEV_SD=y | ||
25 | CONFIG_CHR_DEV_SG=y | ||
26 | CONFIG_SOUND=y | ||
27 | CONFIG_SND=y | ||
28 | CONFIG_SND_HDA_INTEL=y | ||
29 | CONFIG_SATA_AHCI=y | ||
30 | CONFIG_AGP=y | ||
31 | CONFIG_PM=y | ||
32 | CONFIG_ACPI=y | ||
33 | CONFIG_BACKLIGHT_LCD_SUPPORT=y | ||
34 | CONFIG_BACKLIGHT_CLASS_DEVICE=y | ||
35 | CONFIG_INPUT=y | ||
36 | |||
37 | # Make sure these are on, otherwise the bootup won't be fun | ||
38 | CONFIG_EXT3_FS=y | ||
39 | CONFIG_UNIX=y | ||
40 | CONFIG_INET=y | ||
41 | CONFIG_MODULES=y | ||
42 | CONFIG_SHMEM=y | ||
43 | CONFIG_TMPFS=y | ||
44 | CONFIG_PACKET=y | ||
45 | |||
46 | # Needed for booting (and using) USB memory sticks | ||
47 | CONFIG_BLK_DEV_LOOP=y | ||
48 | CONFIG_NLS_CODEPAGE_437=y | ||
49 | CONFIG_NLS_ISO8859_1=y | ||
50 | |||
51 | CONFIG_RD_GZIP=y | ||
52 | |||
53 | # Needed for booting (and using) CD images | ||
54 | CONFIG_BLK_DEV_SR=y | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/{{=machine}}.scc b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/{{=machine}}.scc new file mode 100644 index 0000000000..309f25dc82 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/files/{{=machine}}.scc | |||
@@ -0,0 +1,30 @@ | |||
1 | kconf hardware {{=machine}}.cfg | ||
2 | |||
3 | include features/intel-e1xxxx/intel-e100.scc | ||
4 | include features/intel-e1xxxx/intel-e1xxxx.scc | ||
5 | |||
6 | {{ if xserver == "y" and xserver_choice == "xserver_emgd": }} | ||
7 | include features/drm-emgd/drm-emgd.scc | ||
8 | |||
9 | {{ if xserver == "y" and xserver_choice == "xserver_i915": }} | ||
10 | include features/i915/i915.scc | ||
11 | |||
12 | include features/dmaengine/dmaengine.scc | ||
13 | include features/serial/8250.scc | ||
14 | include features/hpet/hpet.scc | ||
15 | include features/ericsson-3g/f5521gw.scc | ||
16 | |||
17 | {{ if xserver == "y" and xserver_choice == "xserver_vesa" or xserver_choice == "xserver_emgd": }} | ||
18 | include features/framebuffer/vesafb.scc | ||
19 | |||
20 | include cfg/usb-mass-storage.scc | ||
21 | include cfg/boot-live.scc | ||
22 | include features/power/intel.scc | ||
23 | |||
24 | include features/logbuf/size-normal.scc | ||
25 | |||
26 | include features/latencytop/latencytop.scc | ||
27 | include features/profiling/profiling.scc | ||
28 | |||
29 | kconf hardware user-config.cfg | ||
30 | include user-patches.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/kernel-list.noinstall b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/kernel-list.noinstall new file mode 100644 index 0000000000..14cefa60c0 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/i386/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/i386/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.0": }} linux-yocto-rt_3.0.bbappend b/scripts/lib/bsp/substrate/target/arch/i386/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/i386/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.0": }} linux-yocto-rt_3.0.bbappend | |||
@@ -0,0 +1,39 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
2 | |||
3 | PR := "${PR}.1" | ||
4 | |||
5 | COMPATIBLE_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": }} | ||
16 | KBRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
17 | {{ if need_new_kbranch == "n": }} | ||
18 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
19 | |||
20 | {{ if need_new_kbranch == "y": }} | ||
21 | YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
22 | |||
23 | KMACHINE_{{=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": }} | ||
27 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
28 | |||
29 | SRC_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/i386/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.2": }} linux-yocto-rt_3.2.bbappend b/scripts/lib/bsp/substrate/target/arch/i386/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/i386/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.2": }} linux-yocto-rt_3.2.bbappend | |||
@@ -0,0 +1,39 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
2 | |||
3 | PR := "${PR}.1" | ||
4 | |||
5 | COMPATIBLE_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": }} | ||
16 | KBRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
17 | {{ if need_new_kbranch == "n": }} | ||
18 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
19 | |||
20 | {{ if need_new_kbranch == "y": }} | ||
21 | YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
22 | |||
23 | KMACHINE_{{=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": }} | ||
27 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
28 | |||
29 | SRC_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/i386/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.0": }} linux-yocto_3.0.bbappend b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.0": }} linux-yocto_3.0.bbappend new file mode 100644 index 0000000000..39bf0f3155 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.0": }} linux-yocto_3.0.bbappend | |||
@@ -0,0 +1,41 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
2 | |||
3 | PR := "${PR}.1" | ||
4 | |||
5 | COMPATIBLE_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/base" }} | ||
14 | |||
15 | {{ if need_new_kbranch == "y": }} | ||
16 | KBRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
17 | {{ if need_new_kbranch == "n": }} | ||
18 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
19 | |||
20 | KMACHINE_{{=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": }} | ||
24 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
25 | |||
26 | {{ if need_new_kbranch == "y": }} | ||
27 | YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
28 | {{ if need_new_kbranch == "n": }} | ||
29 | YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
30 | |||
31 | SRC_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/i386/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.2": }} linux-yocto_3.2.bbappend b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.2": }} linux-yocto_3.2.bbappend new file mode 100644 index 0000000000..4877aa231f --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/i386/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.2": }} linux-yocto_3.2.bbappend | |||
@@ -0,0 +1,39 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
2 | |||
3 | PR := "${PR}.1" | ||
4 | |||
5 | COMPATIBLE_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/base" }} | ||
14 | |||
15 | {{ if need_new_kbranch == "y": }} | ||
16 | KBRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
17 | {{ if need_new_kbranch == "n": }} | ||
18 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
19 | |||
20 | {{ if need_new_kbranch == "y": }} | ||
21 | YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
22 | |||
23 | KMACHINE_{{=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": }} | ||
27 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
28 | |||
29 | SRC_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" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips/.gitignore b/scripts/lib/bsp/substrate/target/arch/mips/.gitignore new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/mips/.gitignore | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips/conf/machine/{{=machine}}.conf b/scripts/lib/bsp/substrate/target/arch/mips/conf/machine/{{=machine}}.conf new file mode 100644 index 0000000000..51157e5e22 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/mips/conf/machine/{{=machine}}.conf | |||
@@ -0,0 +1,28 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: {{=machine}} | ||
3 | |||
4 | #@DESCRIPTION: Machine configuration for {{=machine}} systems | ||
5 | |||
6 | require conf/machine/include/tune-mips32.inc | ||
7 | |||
8 | MACHINE_FEATURES = "kernel26 screen keyboard pci usbhost ext2 ext3 \ | ||
9 | serial" | ||
10 | |||
11 | KERNEL_IMAGETYPE = "vmlinux" | ||
12 | KERNEL_ALT_IMAGETYPE = "vmlinux.bin" | ||
13 | |||
14 | {{ preferred_kernel = kernel_choice.split('_')[0] }} | ||
15 | {{ preferred_kernel_version = kernel_choice.split('_')[1] }} | ||
16 | PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}" | ||
17 | PREFERRED_VERSION_{{=preferred_kernel}} ?= "{{=preferred_kernel_version}}%" | ||
18 | |||
19 | {{ input type:"boolean" name:"xserver" prio:"50" msg:"Do you need support for X? (y/n)" default:"y" }} | ||
20 | {{ if xserver == "y": }} | ||
21 | PREFERRED_PROVIDER_virtual/xserver = "xserver-kdrive" | ||
22 | XSERVER = "xserver-kdrive-fbdev" | ||
23 | |||
24 | SERIAL_CONSOLE = "115200 ttyS0" | ||
25 | |||
26 | MACHINE_EXTRA_RRECOMMENDS = " kernel-modules" | ||
27 | |||
28 | IMAGE_FSTYPES ?= "jffs2 tar.bz2" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/user-config.cfg b/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/user-config.cfg new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/user-config.cfg | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/user-patches.scc b/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/user-patches.scc new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/user-patches.scc | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/{{=machine}}-preempt-rt.scc b/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/{{=machine}}-preempt-rt.scc new file mode 100644 index 0000000000..792c4d5825 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/{{=machine}}-preempt-rt.scc | |||
@@ -0,0 +1,8 @@ | |||
1 | define KMACHINE {{=machine}} | ||
2 | define KTYPE preempt-rt | ||
3 | define KARCH mips | ||
4 | |||
5 | # no new branch required, re-use the ktypes/preempt-rt branch | ||
6 | include ktypes/preempt-rt | ||
7 | |||
8 | include {{=machine}}.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/{{=machine}}-standard.scc b/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/{{=machine}}-standard.scc new file mode 100644 index 0000000000..c6139f0819 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/{{=machine}}-standard.scc | |||
@@ -0,0 +1,8 @@ | |||
1 | define KMACHINE {{=machine}} | ||
2 | define KTYPE standard | ||
3 | define KARCH mips | ||
4 | |||
5 | include ktypes/standard | ||
6 | branch {{=machine}} | ||
7 | |||
8 | include {{=machine}}.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/{{=machine}}.cfg b/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/{{=machine}}.cfg new file mode 100644 index 0000000000..a1b333ca56 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/{{=machine}}.cfg | |||
@@ -0,0 +1 @@ | |||
CONFIG_MIPS=y | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/{{=machine}}.scc b/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/{{=machine}}.scc new file mode 100644 index 0000000000..7d295418fc --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/files/{{=machine}}.scc | |||
@@ -0,0 +1,8 @@ | |||
1 | kconf hardware {{=machine}}.cfg | ||
2 | |||
3 | include cfg/usb-mass-storage.scc | ||
4 | include cfg/vfat.scc | ||
5 | |||
6 | kconf hardware user-config.cfg | ||
7 | include user-patches.scc | ||
8 | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/kernel-list.noinstall b/scripts/lib/bsp/substrate/target/arch/mips/recipes-kernel/linux/kernel-list.noinstall new file mode 100644 index 0000000000..14cefa60c0 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/mips/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/mips/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.0": }} linux-yocto-rt_3.0.bbappend b/scripts/lib/bsp/substrate/target/arch/mips/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/mips/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.0": }} linux-yocto-rt_3.0.bbappend | |||
@@ -0,0 +1,39 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
2 | |||
3 | PR := "${PR}.1" | ||
4 | |||
5 | COMPATIBLE_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": }} | ||
16 | KBRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
17 | {{ if need_new_kbranch == "n": }} | ||
18 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
19 | |||
20 | {{ if need_new_kbranch == "y": }} | ||
21 | YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
22 | |||
23 | KMACHINE_{{=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": }} | ||
27 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
28 | |||
29 | SRC_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/mips/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.2": }} linux-yocto-rt_3.2.bbappend b/scripts/lib/bsp/substrate/target/arch/mips/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/mips/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.2": }} linux-yocto-rt_3.2.bbappend | |||
@@ -0,0 +1,39 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
2 | |||
3 | PR := "${PR}.1" | ||
4 | |||
5 | COMPATIBLE_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": }} | ||
16 | KBRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
17 | {{ if need_new_kbranch == "n": }} | ||
18 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
19 | |||
20 | {{ if need_new_kbranch == "y": }} | ||
21 | YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
22 | |||
23 | KMACHINE_{{=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": }} | ||
27 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
28 | |||
29 | SRC_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/mips/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.0": }} linux-yocto_3.0.bbappend b/scripts/lib/bsp/substrate/target/arch/mips/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/mips/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.0": }} linux-yocto_3.0.bbappend | |||
@@ -0,0 +1,41 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
2 | |||
3 | PR := "${PR}.1" | ||
4 | |||
5 | COMPATIBLE_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": }} | ||
16 | KBRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
17 | {{ if need_new_kbranch == "n": }} | ||
18 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
19 | |||
20 | KMACHINE_{{=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": }} | ||
24 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
25 | |||
26 | {{ if need_new_kbranch == "y": }} | ||
27 | YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
28 | {{ if need_new_kbranch == "n": }} | ||
29 | YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
30 | |||
31 | SRC_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/mips/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.2": }} linux-yocto_3.2.bbappend b/scripts/lib/bsp/substrate/target/arch/mips/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/mips/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.2": }} linux-yocto_3.2.bbappend | |||
@@ -0,0 +1,39 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
2 | |||
3 | PR := "${PR}.1" | ||
4 | |||
5 | COMPATIBLE_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": }} | ||
16 | KBRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
17 | {{ if need_new_kbranch == "n": }} | ||
18 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
19 | |||
20 | {{ if need_new_kbranch == "y": }} | ||
21 | YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
22 | |||
23 | KMACHINE_{{=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": }} | ||
27 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
28 | |||
29 | SRC_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" | ||
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 | |||
6 | TARGET_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": }} | ||
17 | include conf/machine/include/tune-ppc603e.inc | ||
18 | {{ if tunefile == "tune_ppce300c2": }} | ||
19 | include conf/machine/include/tune-ppce300c2.inc | ||
20 | {{ if tunefile == "tune_ppce500": }} | ||
21 | include conf/machine/include/tune-ppce500.inc | ||
22 | {{ if tunefile == "tune_ppce500mc": }} | ||
23 | include conf/machine/include/tune-ppce500mc.inc | ||
24 | {{ if tunefile == "tune_ppce500v2": }} | ||
25 | include conf/machine/include/tune-ppce500v2.inc | ||
26 | {{ if tunefile == "tune_ppce5500_32b": }} | ||
27 | include conf/machine/include/tune-ppce5500-32b.inc | ||
28 | {{ if tunefile == "tune_ppce5500_64b": }} | ||
29 | include conf/machine/include/tune-ppce5500-64b.inc | ||
30 | |||
31 | KERNEL_IMAGETYPE = "uImage" | ||
32 | |||
33 | SERIAL_CONSOLE = "115200 ttyS0" | ||
34 | |||
35 | MACHINE_FEATURES = "kernel26 keyboard pci ext2 ext3 serial" | ||
36 | |||
37 | {{ preferred_kernel = kernel_choice.split('_')[0] }} | ||
38 | {{ preferred_kernel_version = kernel_choice.split('_')[1] }} | ||
39 | PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}" | ||
40 | PREFERRED_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": }} | ||
44 | PREFERRED_PROVIDER_virtual/xserver = "xserver-kdrive" | ||
45 | XSERVER = "xserver-kdrive-fbdev" | ||
46 | |||
47 | {{ input type:"edit" name:"uboot_entrypoint" prio:"40" msg:"Please specify a value for UBOOT_ENTRYPOINT:" default:"0x00000000" }} | ||
48 | UBOOT_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" }} | ||
51 | KERNEL_DEVICETREE = "${S}/arch/powerpc/boot/dts/{{=kernel_devicetree}}" | ||
52 | |||
53 | MACHINE_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 @@ | |||
1 | CONFIG_FTRACE_SYSCALLS=y | ||
2 | CONFIG_SCHED_TRACER=y | ||
3 | CONFIG_IRQSOFF_TRACER=y | ||
4 | CONFIG_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 @@ | |||
1 | define KMACHINE {{=machine}} | ||
2 | define KTYPE preempt-rt | ||
3 | define KARCH powerpc | ||
4 | |||
5 | # no new branch required, re-use the ktypes/preempt-rt branch | ||
6 | include ktypes/preempt-rt | ||
7 | |||
8 | include {{=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 @@ | |||
1 | define KMACHINE {{=machine}} | ||
2 | define KTYPE standard | ||
3 | define KARCH powerpc | ||
4 | |||
5 | include ktypes/standard | ||
6 | branch {{=machine}} | ||
7 | |||
8 | include {{=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 | .......................................................................... | ||
13 | CONFIG_PPC32=y | ||
14 | CONFIG_PPC_OF=y | ||
15 | CONFIG_PPC_UDBG_16550=y | ||
16 | |||
17 | # | ||
18 | # Processor support | ||
19 | # | ||
20 | CONFIG_PPC_83xx=y | ||
21 | |||
22 | # | ||
23 | # Platform support | ||
24 | # | ||
25 | CONFIG_MPC831x_RDB=y | ||
26 | # CONFIG_PPC_CHRP is not set | ||
27 | # CONFIG_PPC_PMAC is not set | ||
28 | |||
29 | # | ||
30 | # Bus options | ||
31 | # | ||
32 | CONFIG_PCI=y | ||
33 | |||
34 | # | ||
35 | # Memory Technology Devices (MTD) | ||
36 | # | ||
37 | CONFIG_MTD=y | ||
38 | CONFIG_MTD_PARTITIONS=y | ||
39 | CONFIG_MTD_CMDLINE_PARTS=y | ||
40 | CONFIG_MTD_OF_PARTS=y | ||
41 | |||
42 | # | ||
43 | # User Modules And Translation Layers | ||
44 | # | ||
45 | CONFIG_MTD_CHAR=y | ||
46 | CONFIG_MTD_BLOCK=y | ||
47 | |||
48 | # | ||
49 | # RAM/ROM/Flash chip drivers | ||
50 | # | ||
51 | CONFIG_MTD_CFI=y | ||
52 | CONFIG_MTD_CFI_AMDSTD=y | ||
53 | |||
54 | # | ||
55 | # Mapping drivers for chip access | ||
56 | # | ||
57 | CONFIG_MTD_PHYSMAP_OF=y | ||
58 | |||
59 | # | ||
60 | # NAND Flash Device Drivers | ||
61 | # | ||
62 | CONFIG_MTD_NAND=y | ||
63 | |||
64 | # | ||
65 | # Ethernet (1000 Mbit) | ||
66 | # | ||
67 | CONFIG_GIANFAR=y | ||
68 | |||
69 | # | ||
70 | # Serial drivers | ||
71 | # | ||
72 | CONFIG_SERIAL_8250=y | ||
73 | CONFIG_SERIAL_8250_CONSOLE=y | ||
74 | CONFIG_SERIAL_8250_NR_UARTS=2 | ||
75 | |||
76 | # | ||
77 | # Watchdog Device Drivers | ||
78 | # | ||
79 | CONFIG_8xxx_WDT=y | ||
80 | |||
81 | # | ||
82 | # I2C support | ||
83 | # | ||
84 | CONFIG_I2C=y | ||
85 | CONFIG_I2C_CHARDEV=y | ||
86 | |||
87 | # | ||
88 | # I2C Hardware Bus support | ||
89 | # | ||
90 | CONFIG_I2C_MPC=y | ||
91 | |||
92 | CONFIG_SENSORS_LM75=y | ||
93 | |||
94 | CONFIG_MISC_DEVICES=y | ||
95 | |||
96 | # | ||
97 | # Miscellaneous I2C Chip support | ||
98 | # | ||
99 | CONFIG_EEPROM_AT24=y | ||
100 | |||
101 | # | ||
102 | # SPI support | ||
103 | # | ||
104 | CONFIG_SPI=y | ||
105 | # CONFIG_SPI_DEBUG is not set | ||
106 | CONFIG_SPI_MASTER=y | ||
107 | |||
108 | # | ||
109 | # SPI Master Controller Drivers | ||
110 | # | ||
111 | CONFIG_SPI_MPC8xxx=y | ||
112 | |||
113 | # | ||
114 | # SPI Protocol Masters | ||
115 | # | ||
116 | CONFIG_HWMON=y | ||
117 | |||
118 | # | ||
119 | # SCSI device support | ||
120 | # | ||
121 | CONFIG_SCSI=y | ||
122 | CONFIG_BLK_DEV_SD=y | ||
123 | CONFIG_CHR_DEV_SG=y | ||
124 | CONFIG_SCSI_LOGGING=y | ||
125 | |||
126 | CONFIG_ATA=y | ||
127 | CONFIG_ATA_VERBOSE_ERROR=y | ||
128 | CONFIG_SATA_FSL=y | ||
129 | CONFIG_ATA_SFF=y | ||
130 | |||
131 | # | ||
132 | # USB support | ||
133 | # | ||
134 | CONFIG_USB=m | ||
135 | CONFIG_USB_DEVICEFS=y | ||
136 | |||
137 | # | ||
138 | # USB Host Controller Drivers | ||
139 | # | ||
140 | CONFIG_USB_EHCI_HCD=m | ||
141 | CONFIG_USB_EHCI_FSL=y | ||
142 | CONFIG_USB_STORAGE=m | ||
143 | |||
144 | # | ||
145 | # Real Time Clock | ||
146 | # | ||
147 | CONFIG_RTC_CLASS=y | ||
148 | |||
149 | # | ||
150 | # I2C RTC drivers | ||
151 | # | ||
152 | CONFIG_RTC_DRV_DS1307=y | ||
153 | |||
154 | CONFIG_KGDB_8250=m | ||
155 | |||
156 | CONFIG_CRYPTO_DEV_TALITOS=m | ||
157 | |||
158 | CONFIG_FSL_DMA=y | ||
159 | |||
160 | CONFIG_MMC=y | ||
161 | CONFIG_MMC_SPI=m | ||
162 | |||
163 | CONFIG_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 @@ | |||
1 | kconf hardware {{=machine}}.cfg | ||
2 | |||
3 | include cfg/usb-mass-storage.scc | ||
4 | include cfg/vfat.scc | ||
5 | {{ if kernel_choice == "linux-yocto_3.0" or kernel_choice == "linux-yocto-rt_3.0": }} | ||
6 | include features/dmaengine/dmaengine.scc | ||
7 | {{ if kernel_choice == "linux-yocto_3.2" or kernel_choice == "linux-yocto-rt_3.2": }} | ||
8 | include cfg/dmaengine/dmaengine.scc | ||
9 | |||
10 | kconf hardware user-config.cfg | ||
11 | include 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 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
2 | |||
3 | PR := "${PR}.1" | ||
4 | |||
5 | COMPATIBLE_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": }} | ||
16 | KBRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
17 | {{ if need_new_kbranch == "n": }} | ||
18 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
19 | |||
20 | {{ if need_new_kbranch == "y": }} | ||
21 | YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
22 | |||
23 | KMACHINE_{{=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": }} | ||
27 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
28 | |||
29 | SRC_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 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
2 | |||
3 | PR := "${PR}.1" | ||
4 | |||
5 | COMPATIBLE_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": }} | ||
16 | KBRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
17 | {{ if need_new_kbranch == "n": }} | ||
18 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
19 | |||
20 | {{ if need_new_kbranch == "y": }} | ||
21 | YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
22 | |||
23 | KMACHINE_{{=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": }} | ||
27 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
28 | |||
29 | SRC_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 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
2 | |||
3 | PR := "${PR}.1" | ||
4 | |||
5 | COMPATIBLE_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": }} | ||
16 | KBRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
17 | {{ if need_new_kbranch == "n": }} | ||
18 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
19 | |||
20 | KMACHINE_{{=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": }} | ||
24 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
25 | |||
26 | {{ if need_new_kbranch == "y": }} | ||
27 | YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
28 | {{ if need_new_kbranch == "n": }} | ||
29 | YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
30 | |||
31 | SRC_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 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
2 | |||
3 | PR := "${PR}.1" | ||
4 | |||
5 | COMPATIBLE_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": }} | ||
16 | KBRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
17 | {{ if need_new_kbranch == "n": }} | ||
18 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
19 | |||
20 | {{ if need_new_kbranch == "y": }} | ||
21 | YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
22 | |||
23 | KMACHINE_{{=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": }} | ||
27 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
28 | |||
29 | SRC_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" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/conf/machine/{{=machine}}.conf b/scripts/lib/bsp/substrate/target/arch/qemu/conf/machine/{{=machine}}.conf new file mode 100644 index 0000000000..003ead198c --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/qemu/conf/machine/{{=machine}}.conf | |||
@@ -0,0 +1,59 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: {{=machine}} | ||
3 | |||
4 | #@DESCRIPTION: Machine configuration for {{=machine}} systems | ||
5 | |||
6 | {{ preferred_kernel = kernel_choice.split('_')[0] }} | ||
7 | {{ preferred_kernel_version = kernel_choice.split('_')[1] }} | ||
8 | PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}" | ||
9 | PREFERRED_VERSION_{{=preferred_kernel}} ?= "{{=preferred_kernel_version}}%" | ||
10 | |||
11 | PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg" | ||
12 | |||
13 | {{ input type:"choicelist" name:"qemuarch" prio:"5" msg:"Which qemu architecture would you like to use?" default:"i386" }} | ||
14 | {{ input type:"choice" val:"i386" msg:"i386 (32-bit)" }} | ||
15 | {{ input type:"choice" val:"x86_64" msg:"x86_64 (64-bit)" }} | ||
16 | {{ input type:"choice" val:"arm" msg:"ARM (32-bit)" }} | ||
17 | {{ input type:"choice" val:"powerpc" msg:"PowerPC (32-bit)" }} | ||
18 | {{ input type:"choice" val:"mips" msg:"MIPS (32-bit)" }} | ||
19 | {{ if qemuarch == "i386": }} | ||
20 | require conf/machine/include/tune-i586.inc | ||
21 | {{ if qemuarch == "x86_64": }} | ||
22 | require conf/machine/include/tune-i586.inc | ||
23 | {{ if qemuarch == "arm": }} | ||
24 | require conf/machine/include/tune-arm926ejs.inc | ||
25 | {{ if qemuarch == "powerpc": }} | ||
26 | require conf/machine/include/tune-ppc603e.inc | ||
27 | {{ if qemuarch == "mips": }} | ||
28 | require conf/machine/include/tune-mips32.inc | ||
29 | |||
30 | require conf/machine/include/qemu.inc | ||
31 | |||
32 | {{ if qemuarch == "i386" or qemuarch == "x86_64": }} | ||
33 | MACHINE_FEATURES += "x86" | ||
34 | KERNEL_IMAGETYPE = "bzImage" | ||
35 | SERIAL_CONSOLE = "115200 ttyS0" | ||
36 | # We bypass swrast but we need it to be present for X to load correctly | ||
37 | XSERVER ?= "xserver-xorg \ | ||
38 | mesa-dri-driver-swrast \ | ||
39 | xf86-input-vmmouse \ | ||
40 | xf86-input-keyboard \ | ||
41 | xf86-input-evdev \ | ||
42 | xf86-video-vmware \ | ||
43 | qemugl" | ||
44 | GLIBC_ADDONS = "nptl" | ||
45 | GLIBC_EXTRA_OECONF = "--with-tls" | ||
46 | |||
47 | {{ if qemuarch == "arm": }} | ||
48 | KERNEL_IMAGETYPE = "zImage" | ||
49 | SERIAL_CONSOLE = "115200 ttyAMA0" | ||
50 | |||
51 | {{ if qemuarch == "powerpc": }} | ||
52 | KERNEL_IMAGETYPE = "vmlinux" | ||
53 | SERIAL_CONSOLE = "115200 ttyS0" | ||
54 | |||
55 | {{ if qemuarch == "mips": }} | ||
56 | KERNEL_IMAGETYPE = "vmlinux" | ||
57 | KERNEL_ALT_IMAGETYPE = "vmlinux.bin" | ||
58 | SERIAL_CONSOLE = "115200 ttyS0" | ||
59 | MACHINE_EXTRA_RRECOMMENDS = " kernel-modules" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-graphics/xorg-xserver/xserver-xf86-config/{{=machine}}/xorg.conf b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-graphics/xorg-xserver/xserver-xf86-config/{{=machine}}/xorg.conf new file mode 100644 index 0000000000..10a6d9a0bc --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-graphics/xorg-xserver/xserver-xf86-config/{{=machine}}/xorg.conf | |||
@@ -0,0 +1,69 @@ | |||
1 | |||
2 | Section "Files" | ||
3 | EndSection | ||
4 | |||
5 | Section "InputDevice" | ||
6 | Identifier "Generic Keyboard" | ||
7 | Driver "evdev" | ||
8 | Option "CoreKeyboard" | ||
9 | Option "Device" "/dev/input/by-path/platform-i8042-serio-0-event-kbd" | ||
10 | Option "XkbRules" "xorg" | ||
11 | Option "XkbModel" "evdev" | ||
12 | Option "XkbLayout" "us" | ||
13 | EndSection | ||
14 | |||
15 | Section "InputDevice" | ||
16 | Identifier "Configured Mouse" | ||
17 | Driver "vmmouse" | ||
18 | Option "CorePointer" | ||
19 | Option "Device" "/dev/input/mice" | ||
20 | Option "Protocol" "ImPS/2" | ||
21 | Option "ZAxisMapping" "4 5" | ||
22 | Option "Emulate3Buttons" "true" | ||
23 | EndSection | ||
24 | |||
25 | Section "InputDevice" | ||
26 | Identifier "Qemu Tablet" | ||
27 | Driver "evdev" | ||
28 | Option "CorePointer" | ||
29 | Option "Device" "/dev/input/touchscreen0" | ||
30 | Option "USB" "on" | ||
31 | EndSection | ||
32 | |||
33 | Section "Device" | ||
34 | Identifier "Graphics Controller" | ||
35 | Driver "vmware" | ||
36 | EndSection | ||
37 | |||
38 | Section "Monitor" | ||
39 | Identifier "Generic Monitor" | ||
40 | Option "DPMS" | ||
41 | # 1024x600 59.85 Hz (CVT) hsync: 37.35 kHz; pclk: 49.00 MHz | ||
42 | Modeline "1024x600_60.00" 49.00 1024 1072 1168 1312 600 603 613 624 -hsync +vsync | ||
43 | # 640x480 @ 60Hz (Industry standard) hsync: 31.5kHz | ||
44 | ModeLine "640x480" 25.2 640 656 752 800 480 490 492 525 -hsync -vsync | ||
45 | # 640x480 @ 72Hz (VESA) hsync: 37.9kHz | ||
46 | ModeLine "640x480" 31.5 640 664 704 832 480 489 491 520 -hsync -vsync | ||
47 | # 640x480 @ 75Hz (VESA) hsync: 37.5kHz | ||
48 | ModeLine "640x480" 31.5 640 656 720 840 480 481 484 500 -hsync -vsync | ||
49 | # 640x480 @ 85Hz (VESA) hsync: 43.3kHz | ||
50 | ModeLine "640x480" 36.0 640 696 752 832 480 481 484 509 -hsync -vsync | ||
51 | EndSection | ||
52 | |||
53 | Section "Screen" | ||
54 | Identifier "Default Screen" | ||
55 | Device "Graphics Controller" | ||
56 | Monitor "Generic Monitor" | ||
57 | SubSection "Display" | ||
58 | Modes "640x480" | ||
59 | EndSubSection | ||
60 | EndSection | ||
61 | |||
62 | Section "ServerLayout" | ||
63 | Identifier "Default Layout" | ||
64 | Screen "Default Screen" | ||
65 | InputDevice "Generic Keyboard" | ||
66 | # InputDevice "Configured Mouse" | ||
67 | InputDevice "QEMU Tablet" | ||
68 | Option "AllowEmptyInput" "no" | ||
69 | EndSection | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-graphics/xorg-xserver/{{ if qemuarch == "x86" or qemuarch == "x86_64": }} xserver-xf86-config_0.1.bbappend b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-graphics/xorg-xserver/{{ if qemuarch == "x86" or qemuarch == "x86_64": }} xserver-xf86-config_0.1.bbappend new file mode 100644 index 0000000000..d3420e0aea --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-graphics/xorg-xserver/{{ if qemuarch == "x86" or qemuarch == "x86_64": }} xserver-xf86-config_0.1.bbappend | |||
@@ -0,0 +1,2 @@ | |||
1 | THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" | ||
2 | FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}"], d)}:" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/user-config.cfg b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/user-config.cfg new file mode 100644 index 0000000000..2ee921bfc4 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/user-config.cfg | |||
@@ -0,0 +1,4 @@ | |||
1 | CONFIG_FTRACE_SYSCALLS=y | ||
2 | CONFIG_SCHED_TRACER=y | ||
3 | CONFIG_IRQSOFF_TRACER=y | ||
4 | CONFIG_PREEMPT_TRACER=y | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/user-patches.scc b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/user-patches.scc new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/user-patches.scc | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/{{=machine}}-preempt-rt.scc b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/{{=machine}}-preempt-rt.scc new file mode 100644 index 0000000000..6399a4b535 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/{{=machine}}-preempt-rt.scc | |||
@@ -0,0 +1,30 @@ | |||
1 | define KMACHINE {{=machine}} | ||
2 | define KTYPE preempt-rt | ||
3 | {{ if qemuarch == "i386": }} | ||
4 | define KARCH i386 | ||
5 | {{ if qemuarch == "x86_64": }} | ||
6 | define KARCH x86_64 | ||
7 | {{ if qemuarch == "arm": }} | ||
8 | define KARCH arm | ||
9 | {{ if qemuarch == "powerpc": }} | ||
10 | define KARCH powerpc | ||
11 | {{ if qemuarch == "mips": }} | ||
12 | define KARCH mips | ||
13 | |||
14 | {{ if qemuarch == "i386": }} | ||
15 | include bsp/common-pc/common-pc-preempt-rt | ||
16 | branch {{=machine}} | ||
17 | {{ if qemuarch == "x86_64": }} | ||
18 | include bsp/common-pc-64/common-pc-64-preempt-rt | ||
19 | branch {{=machine}} | ||
20 | {{ if qemuarch == "arm": }} | ||
21 | include bsp/arm-versatile-926ejs/arm-versatile-926ejs-preempt-rt | ||
22 | branch {{=machine}} | ||
23 | {{ if qemuarch == "powerpc": }} | ||
24 | include bsp/qemu-ppc32/qemu-ppc32-rt | ||
25 | branch {{=machine}} | ||
26 | {{ if qemuarch == "mips": }} | ||
27 | include bsp/mti-malta32/mti-malta32-be-preempt-rt | ||
28 | branch {{=machine}} | ||
29 | |||
30 | include {{=machine}}.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/{{=machine}}-standard.scc b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/{{=machine}}-standard.scc new file mode 100644 index 0000000000..9ed66c3ebf --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/{{=machine}}-standard.scc | |||
@@ -0,0 +1,30 @@ | |||
1 | define KMACHINE {{=machine}} | ||
2 | define KTYPE standard | ||
3 | {{ if qemuarch == "i386": }} | ||
4 | define KARCH i386 | ||
5 | {{ if qemuarch == "x86_64": }} | ||
6 | define KARCH x86_64 | ||
7 | {{ if qemuarch == "arm": }} | ||
8 | define KARCH arm | ||
9 | {{ if qemuarch == "powerpc": }} | ||
10 | define KARCH powerpc | ||
11 | {{ if qemuarch == "mips": }} | ||
12 | define KARCH mips | ||
13 | |||
14 | {{ if qemuarch == "i386": }} | ||
15 | include bsp/common-pc/common-pc-standard | ||
16 | branch {{=machine}} | ||
17 | {{ if qemuarch == "x86_64": }} | ||
18 | include bsp/common-pc-64/common-pc-64-standard | ||
19 | branch {{=machine}} | ||
20 | {{ if qemuarch == "arm": }} | ||
21 | include bsp/arm-versatile-926ejs/arm-versatile-926ejs-standard | ||
22 | branch {{=machine}} | ||
23 | {{ if qemuarch == "powerpc": }} | ||
24 | include bsp/qemu-ppc32/qemu-ppc32-standard | ||
25 | branch {{=machine}} | ||
26 | {{ if qemuarch == "mips": }} | ||
27 | include bsp/mti-malta32/mti-malta32-be-standard | ||
28 | branch {{=machine}} | ||
29 | |||
30 | include {{=machine}}.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/{{=machine}}.cfg b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/{{=machine}}.cfg new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/{{=machine}}.cfg | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/{{=machine}}.scc b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/{{=machine}}.scc new file mode 100644 index 0000000000..e301b22ca2 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/files/{{=machine}}.scc | |||
@@ -0,0 +1,6 @@ | |||
1 | kconf hardware {{=machine}}.cfg | ||
2 | |||
3 | include features/logbuf/size-normal.scc | ||
4 | |||
5 | kconf hardware user-config.cfg | ||
6 | include user-patches.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/kernel-list.noinstall b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/kernel-list.noinstall new file mode 100644 index 0000000000..14cefa60c0 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/qemu/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/qemu/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.0": }} linux-yocto-rt_3.0.bbappend b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.0": }} linux-yocto-rt_3.0.bbappend new file mode 100644 index 0000000000..21e52343a6 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.0": }} linux-yocto-rt_3.0.bbappend | |||
@@ -0,0 +1,61 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
2 | |||
3 | PR := "${PR}.1" | ||
4 | |||
5 | COMPATIBLE_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" and qemuarch == "arm": }} | ||
10 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"arm" 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" and qemuarch == "arm": }} | ||
13 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"arm" 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" and qemuarch == "powerpc": }} | ||
16 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"powerpc" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"yocto/standard/preempt-rt" }} | ||
17 | |||
18 | {{ if need_new_kbranch == "n" and qemuarch == "powerpc": }} | ||
19 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"powerpc" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"yocto/standard/preempt-rt/qemu-ppc32" }} | ||
20 | |||
21 | {{ if need_new_kbranch == "y" and qemuarch == "i386": }} | ||
22 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"yocto/standard/preempt-rt" }} | ||
23 | |||
24 | {{ if need_new_kbranch == "n" and qemuarch == "i386": }} | ||
25 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"yocto/standard/preempt-rt/base" }} | ||
26 | |||
27 | {{ if need_new_kbranch == "y" and qemuarch == "x86_64": }} | ||
28 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"x86_64" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"yocto/standard/preempt-rt" }} | ||
29 | |||
30 | {{ if need_new_kbranch == "n" and qemuarch == "x86_64": }} | ||
31 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"x86_64" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"yocto/standard/preempt-rt/base" }} | ||
32 | |||
33 | {{ if need_new_kbranch == "y" and qemuarch == "mips": }} | ||
34 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"mips" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"yocto/standard/preempt-rt" }} | ||
35 | |||
36 | {{ if need_new_kbranch == "n" and qemuarch == "mips": }} | ||
37 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"mips" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"yocto/standard/preempt-rt/base" }} | ||
38 | |||
39 | {{ if need_new_kbranch == "y": }} | ||
40 | KBRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
41 | {{ if need_new_kbranch == "n": }} | ||
42 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
43 | |||
44 | {{ if need_new_kbranch == "y": }} | ||
45 | YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
46 | |||
47 | KMACHINE_{{=machine}} = "{{=machine}}" | ||
48 | |||
49 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
50 | {{ if smp == "y": }} | ||
51 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
52 | |||
53 | SRC_URI += "file://{{=machine}}-preempt-rt.scc \ | ||
54 | file://{{=machine}}.scc \ | ||
55 | file://{{=machine}}.cfg \ | ||
56 | " | ||
57 | |||
58 | # uncomment and replace these SRCREVs with the real commit ids once you've had | ||
59 | # the appropriate changes committed to the upstream linux-yocto repo | ||
60 | #SRCREV_machine_pn-linux-yocto-rt_{{=machine}} ?= "417fc778a86e81303bab5883b919ee422ec51c04" | ||
61 | #SRCREV_meta_pn-linux-yocto-rt_{{=machine}} ?= "138bf5b502607fe40315c0d76822318d77d97e01" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.2": }} linux-yocto-rt_3.2.bbappend b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.2": }} linux-yocto-rt_3.2.bbappend new file mode 100644 index 0000000000..c0e22c7701 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.2": }} linux-yocto-rt_3.2.bbappend | |||
@@ -0,0 +1,61 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
2 | |||
3 | PR := "${PR}.1" | ||
4 | |||
5 | COMPATIBLE_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" and qemuarch == "arm": }} | ||
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" and qemuarch == "arm": }} | ||
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" and qemuarch == "powerpc": }} | ||
16 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"powerpc" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/preempt-rt" }} | ||
17 | |||
18 | {{ if need_new_kbranch == "n" and qemuarch == "powerpc": }} | ||
19 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"powerpc" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/preempt-rt/qemu-ppc32" }} | ||
20 | |||
21 | {{ if need_new_kbranch == "y" and qemuarch == "i386": }} | ||
22 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/preempt-rt" }} | ||
23 | |||
24 | {{ if need_new_kbranch == "n" and qemuarch == "i386": }} | ||
25 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/preempt-rt/base" }} | ||
26 | |||
27 | {{ if need_new_kbranch == "y" and qemuarch == "x86_64": }} | ||
28 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"x86_64" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/preempt-rt" }} | ||
29 | |||
30 | {{ if need_new_kbranch == "n" and qemuarch == "x86_64": }} | ||
31 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"x86_64" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/preempt-rt/base" }} | ||
32 | |||
33 | {{ if need_new_kbranch == "y" and qemuarch == "mips": }} | ||
34 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"mips" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/preempt-rt" }} | ||
35 | |||
36 | {{ if need_new_kbranch == "n" and qemuarch == "mips": }} | ||
37 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"mips" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/preempt-rt/base" }} | ||
38 | |||
39 | {{ if need_new_kbranch == "y": }} | ||
40 | KBRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
41 | {{ if need_new_kbranch == "n": }} | ||
42 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
43 | |||
44 | {{ if need_new_kbranch == "y": }} | ||
45 | YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
46 | |||
47 | KMACHINE_{{=machine}} = "{{=machine}}" | ||
48 | |||
49 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
50 | {{ if smp == "y": }} | ||
51 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
52 | |||
53 | SRC_URI += "file://{{=machine}}-preempt-rt.scc \ | ||
54 | file://{{=machine}}.scc \ | ||
55 | file://{{=machine}}.cfg \ | ||
56 | " | ||
57 | |||
58 | # uncomment and replace these SRCREVs with the real commit ids once you've had | ||
59 | # the appropriate changes committed to the upstream linux-yocto repo | ||
60 | #SRCREV_machine_pn-linux-yocto-rt_{{=machine}} ?= "417fc778a86e81303bab5883b919ee422ec51c04" | ||
61 | #SRCREV_meta_pn-linux-yocto-rt_{{=machine}} ?= "138bf5b502607fe40315c0d76822318d77d97e01" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.0": }} linux-yocto_3.0.bbappend b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.0": }} linux-yocto_3.0.bbappend new file mode 100644 index 0000000000..56c40299ab --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.0": }} linux-yocto_3.0.bbappend | |||
@@ -0,0 +1,63 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
2 | |||
3 | PR := "${PR}.1" | ||
4 | |||
5 | COMPATIBLE_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" and qemuarch == "arm": }} | ||
10 | {{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base your new BSP branch on:" default:"yocto/standard" }} | ||
11 | |||
12 | {{ if need_new_kbranch == "n" and qemuarch == "arm": }} | ||
13 | {{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose an existing machine branch to use for this BSP:" default:"yocto/standard/arm-versatile-926ejs" }} | ||
14 | |||
15 | {{ if need_new_kbranch == "y" and qemuarch == "powerpc": }} | ||
16 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"powerpc" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"yocto/standard" }} | ||
17 | |||
18 | {{ if need_new_kbranch == "n" and qemuarch == "powerpc": }} | ||
19 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"powerpc" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"yocto/standard/qemu-ppc32" }} | ||
20 | |||
21 | {{ if need_new_kbranch == "y" and qemuarch == "i386": }} | ||
22 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"yocto/standard/common-pc" }} | ||
23 | |||
24 | {{ if need_new_kbranch == "n" and qemuarch == "i386": }} | ||
25 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"yocto/standard/common-pc/base" }} | ||
26 | |||
27 | {{ if need_new_kbranch == "y" and qemuarch == "x86_64": }} | ||
28 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"x86_64" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"yocto/standard/common-pc-64" }} | ||
29 | |||
30 | {{ if need_new_kbranch == "n" and qemuarch == "x86_64": }} | ||
31 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"x86_64" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"yocto/standard/common-pc-64/base" }} | ||
32 | |||
33 | {{ if need_new_kbranch == "y" and qemuarch == "mips": }} | ||
34 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"mips" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"yocto/standard" }} | ||
35 | |||
36 | {{ if need_new_kbranch == "n" and qemuarch == "mips": }} | ||
37 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"mips" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"yocto/standard/mti-malta32-be" }} | ||
38 | |||
39 | {{ if need_new_kbranch == "y": }} | ||
40 | KBRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
41 | {{ if need_new_kbranch == "n": }} | ||
42 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
43 | |||
44 | {{ if need_new_kbranch == "y": }} | ||
45 | YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
46 | |||
47 | KMACHINE_{{=machine}} = "{{=machine}}" | ||
48 | |||
49 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Would you like SMP support? (y/n)" default:"y"}} | ||
50 | {{ if smp == "y": }} | ||
51 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
52 | |||
53 | SRC_URI += "file://{{=machine}}-standard.scc \ | ||
54 | file://{{=machine}}.scc \ | ||
55 | file://{{=machine}}.cfg \ | ||
56 | file://user-config.cfg \ | ||
57 | file://user-patches.scc \ | ||
58 | " | ||
59 | |||
60 | # uncomment and replace these SRCREVs with the real commit ids once you've had | ||
61 | # the appropriate changes committed to the upstream linux-yocto repo | ||
62 | #SRCREV_machine_pn-linux-yocto_{{=machine}} ?= "417fc778a86e81303bab5883b919ee422ec51c04" | ||
63 | #SRCREV_meta_pn-linux-yocto_{{=machine}} ?= "138bf5b502607fe40315c0d76822318d77d97e01" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.2": }} linux-yocto_3.2.bbappend b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.2": }} linux-yocto_3.2.bbappend new file mode 100644 index 0000000000..36c5cc3607 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/qemu/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.2": }} linux-yocto_3.2.bbappend | |||
@@ -0,0 +1,63 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
2 | |||
3 | PR := "${PR}.1" | ||
4 | |||
5 | COMPATIBLE_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" and qemuarch == "arm": }} | ||
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" and qemuarch == "arm": }} | ||
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/arm-versatile-926ejs" }} | ||
14 | |||
15 | {{ if need_new_kbranch == "y" and qemuarch == "powerpc": }} | ||
16 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"powerpc" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/default" }} | ||
17 | |||
18 | {{ if need_new_kbranch == "n" and qemuarch == "powerpc": }} | ||
19 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"powerpc" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/default/qemu-ppc32" }} | ||
20 | |||
21 | {{ if need_new_kbranch == "y" and qemuarch == "i386": }} | ||
22 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/default/common-pc" }} | ||
23 | |||
24 | {{ if need_new_kbranch == "n" and qemuarch == "i386": }} | ||
25 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/default/common-pc/base" }} | ||
26 | |||
27 | {{ if need_new_kbranch == "y" and qemuarch == "x86_64": }} | ||
28 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"x86_64" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/default/common-pc-64" }} | ||
29 | |||
30 | {{ if need_new_kbranch == "n" and qemuarch == "x86_64": }} | ||
31 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"x86_64" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/default/common-pc-64/base" }} | ||
32 | |||
33 | {{ if need_new_kbranch == "y" and qemuarch == "mips": }} | ||
34 | {{ input type:"choicelist" name:"new_kbranch" nameappend:"mips" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/default" }} | ||
35 | |||
36 | {{ if need_new_kbranch == "n" and qemuarch == "mips": }} | ||
37 | {{ input type:"choicelist" name:"existing_kbranch" nameappend:"mips" gen:"bsp.kernel.all_branches" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/default/mti-malta32-be" }} | ||
38 | |||
39 | {{ if need_new_kbranch == "y": }} | ||
40 | KBRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
41 | {{ if need_new_kbranch == "n": }} | ||
42 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
43 | |||
44 | {{ if need_new_kbranch == "y": }} | ||
45 | YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
46 | |||
47 | KMACHINE_{{=machine}} = "{{=machine}}" | ||
48 | |||
49 | {{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}} | ||
50 | {{ if smp == "y": }} | ||
51 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
52 | |||
53 | SRC_URI += "file://{{=machine}}-standard.scc \ | ||
54 | file://{{=machine}}.scc \ | ||
55 | file://{{=machine}}.cfg \ | ||
56 | file://user-config.cfg \ | ||
57 | file://user-patches.scc \ | ||
58 | " | ||
59 | |||
60 | # uncomment and replace these SRCREVs with the real commit ids once you've had | ||
61 | # the appropriate changes committed to the upstream linux-yocto repo | ||
62 | #SRCREV_machine_pn-linux-yocto_{{=machine}} ?= "417fc778a86e81303bab5883b919ee422ec51c04" | ||
63 | #SRCREV_meta_pn-linux-yocto_{{=machine}} ?= "138bf5b502607fe40315c0d76822318d77d97e01" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/.gitignore b/scripts/lib/bsp/substrate/target/arch/x86_64/.gitignore new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/x86_64/.gitignore | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/conf/machine/{{=machine}}.conf b/scripts/lib/bsp/substrate/target/arch/x86_64/conf/machine/{{=machine}}.conf new file mode 100644 index 0000000000..6c2db2249d --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/x86_64/conf/machine/{{=machine}}.conf | |||
@@ -0,0 +1,32 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: {{=machine}} | ||
3 | |||
4 | #@DESCRIPTION: Machine configuration for {{=machine}} systems | ||
5 | |||
6 | {{ preferred_kernel = kernel_choice.split('_')[0] }} | ||
7 | {{ preferred_kernel_version = kernel_choice.split('_')[1] }} | ||
8 | PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}" | ||
9 | PREFERRED_VERSION_{{=preferred_kernel}} ?= "{{=preferred_kernel_version}}%" | ||
10 | |||
11 | require conf/machine/include/tune-x86_64.inc | ||
12 | require conf/machine/include/ia32-base.inc | ||
13 | |||
14 | {{ input type:"boolean" name:"xserver" prio:"50" msg:"Do you need support for X? (y/n)" default:"y" }} | ||
15 | |||
16 | {{ if xserver == "y": }} | ||
17 | {{ input type:"choicelist" name:"xserver_choice" prio:"50" msg:"Please select an xserver for this machine:" default:"xserver_i915" }} | ||
18 | |||
19 | {{ input type:"choice" val:"xserver_vesa" msg:"VESA xserver support" }} | ||
20 | {{ input type:"choice" val:"xserver_i915" msg:"i915 xserver support" }} | ||
21 | {{ if xserver == "y": }} | ||
22 | XSERVER ?= "${XSERVER_IA32_BASE} \ | ||
23 | ${XSERVER_IA32_EXT} \ | ||
24 | {{ if xserver == "y" and xserver_choice == "xserver_vesa": }} | ||
25 | ${XSERVER_IA32_VESA} \ | ||
26 | {{ if xserver == "y" and xserver_choice == "xserver_i915": }} | ||
27 | ${XSERVER_IA32_I915} \ | ||
28 | {{ if xserver == "y" and xserver == "y": }} | ||
29 | " | ||
30 | |||
31 | {{ if xserver == "y" and xserver_choice == "xserver_vesa": }} | ||
32 | APPEND += "video=vesafb vga=0x318" | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-graphics/xorg-xserver/xserver-xf86-config/{{=machine}}/{{ if xserver_choice == "xserver_i915": }} xorg.conf b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-graphics/xorg-xserver/xserver-xf86-config/{{=machine}}/{{ if xserver_choice == "xserver_i915": }} xorg.conf new file mode 100644 index 0000000000..96b94b46c7 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-graphics/xorg-xserver/xserver-xf86-config/{{=machine}}/{{ if xserver_choice == "xserver_i915": }} xorg.conf | |||
@@ -0,0 +1,26 @@ | |||
1 | Section "Device" | ||
2 | Identifier "Intel Graphics Driver" | ||
3 | Driver "intel" | ||
4 | EndSection | ||
5 | |||
6 | Section "Monitor" | ||
7 | Identifier "Generic Monitor" | ||
8 | Option "DPMS" | ||
9 | EndSection | ||
10 | |||
11 | Section "Screen" | ||
12 | Identifier "Default Screen" | ||
13 | Device "Intel Graphics Driver" | ||
14 | Monitor "Generic Monitor" | ||
15 | DefaultDepth 24 | ||
16 | EndSection | ||
17 | |||
18 | Section "ServerLayout" | ||
19 | Identifier "Default Layout" | ||
20 | Screen "Default Screen" | ||
21 | EndSection | ||
22 | |||
23 | Section "ServerFlags" | ||
24 | Option "DontZap" "0" | ||
25 | Option "AutoAddDevices" "False" | ||
26 | EndSection | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-graphics/xorg-xserver/xserver-xf86-config/{{=machine}}/{{ if xserver_choice == "xserver_vesa": }} xorg.conf b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-graphics/xorg-xserver/xserver-xf86-config/{{=machine}}/{{ if xserver_choice == "xserver_vesa": }} xorg.conf new file mode 100644 index 0000000000..da4fc3c643 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-graphics/xorg-xserver/xserver-xf86-config/{{=machine}}/{{ if xserver_choice == "xserver_vesa": }} xorg.conf | |||
@@ -0,0 +1,26 @@ | |||
1 | Section "Device" | ||
2 | Identifier "Generic VESA" | ||
3 | Driver "vesa" | ||
4 | EndSection | ||
5 | |||
6 | Section "Monitor" | ||
7 | Identifier "Generic Monitor" | ||
8 | Option "DPMS" | ||
9 | EndSection | ||
10 | |||
11 | Section "Screen" | ||
12 | Identifier "Default Screen" | ||
13 | Device "Generic VESA" | ||
14 | Monitor "Generic Monitor" | ||
15 | DefaultDepth 24 | ||
16 | EndSection | ||
17 | |||
18 | Section "ServerLayout" | ||
19 | Identifier "Default Layout" | ||
20 | Screen "Default Screen" | ||
21 | EndSection | ||
22 | |||
23 | Section "ServerFlags" | ||
24 | Option "DontZap" "0" | ||
25 | Option "AutoAddDevices" "False" | ||
26 | EndSection | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-graphics/xorg-xserver/{{ if xserver == "y": }} xserver-xf86-config_0.1.bbappend b/scripts/lib/bsp/substrate/target/arch/x86_64/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/x86_64/recipes-graphics/xorg-xserver/{{ if xserver == "y": }} xserver-xf86-config_0.1.bbappend | |||
@@ -0,0 +1,3 @@ | |||
1 | THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" | ||
2 | FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}"], d)}:" | ||
3 | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/user-config.cfg b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/user-config.cfg new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/user-config.cfg | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/user-patches.scc b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/user-patches.scc new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/user-patches.scc | |||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/{{=machine}}-preempt-rt.scc b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/{{=machine}}-preempt-rt.scc new file mode 100644 index 0000000000..ecb0f01e2f --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/{{=machine}}-preempt-rt.scc | |||
@@ -0,0 +1,8 @@ | |||
1 | define KMACHINE {{=machine}} | ||
2 | define KTYPE preempt-rt | ||
3 | define KARCH x86_64 | ||
4 | |||
5 | # no new branch required, re-use the ktypes/preempt-rt branch | ||
6 | include ktypes/preempt-rt | ||
7 | |||
8 | include {{=machine}}.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/{{=machine}}-standard.scc b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/{{=machine}}-standard.scc new file mode 100644 index 0000000000..2a32fea9cf --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/{{=machine}}-standard.scc | |||
@@ -0,0 +1,8 @@ | |||
1 | define KMACHINE {{=machine}} | ||
2 | define KTYPE standard | ||
3 | define KARCH x86_64 | ||
4 | |||
5 | include bsp/common-pc-64/common-pc-64-standard | ||
6 | branch {{=machine}} | ||
7 | |||
8 | include {{=machine}}.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/{{=machine}}.cfg b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/{{=machine}}.cfg new file mode 100644 index 0000000000..b4b82d7ca0 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/{{=machine}}.cfg | |||
@@ -0,0 +1,47 @@ | |||
1 | CONFIG_PRINTK=y | ||
2 | |||
3 | # Basic hardware support for the box - network, USB, PCI, sound | ||
4 | CONFIG_NETDEVICES=y | ||
5 | CONFIG_ATA=y | ||
6 | CONFIG_ATA_GENERIC=y | ||
7 | CONFIG_ATA_SFF=y | ||
8 | CONFIG_PCI=y | ||
9 | CONFIG_MMC=y | ||
10 | CONFIG_MMC_SDHCI=y | ||
11 | CONFIG_USB_SUPPORT=y | ||
12 | CONFIG_USB=y | ||
13 | CONFIG_USB_ARCH_HAS_EHCI=y | ||
14 | CONFIG_R8169=y | ||
15 | CONFIG_PATA_SCH=y | ||
16 | CONFIG_MMC_SDHCI_PCI=y | ||
17 | CONFIG_USB_EHCI_HCD=y | ||
18 | CONFIG_PCIEPORTBUS=y | ||
19 | CONFIG_NET=y | ||
20 | CONFIG_USB_UHCI_HCD=y | ||
21 | CONFIG_BLK_DEV_SD=y | ||
22 | CONFIG_CHR_DEV_SG=y | ||
23 | CONFIG_SOUND=y | ||
24 | CONFIG_SND=y | ||
25 | CONFIG_SND_HDA_INTEL=y | ||
26 | |||
27 | # Make sure these are on, otherwise the bootup won't be fun | ||
28 | CONFIG_EXT3_FS=y | ||
29 | CONFIG_UNIX=y | ||
30 | CONFIG_INET=y | ||
31 | CONFIG_MODULES=y | ||
32 | CONFIG_SHMEM=y | ||
33 | CONFIG_TMPFS=y | ||
34 | CONFIG_PACKET=y | ||
35 | |||
36 | CONFIG_I2C=y | ||
37 | CONFIG_AGP=y | ||
38 | CONFIG_PM=y | ||
39 | CONFIG_ACPI=y | ||
40 | CONFIG_INPUT=y | ||
41 | |||
42 | # Needed for booting (and using) USB memory sticks | ||
43 | CONFIG_BLK_DEV_LOOP=y | ||
44 | CONFIG_NLS_CODEPAGE_437=y | ||
45 | CONFIG_NLS_ISO8859_1=y | ||
46 | |||
47 | CONFIG_RD_GZIP=y | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/{{=machine}}.scc b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/{{=machine}}.scc new file mode 100644 index 0000000000..5b8ccba14f --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/files/{{=machine}}.scc | |||
@@ -0,0 +1,17 @@ | |||
1 | kconf hardware {{=machine}}.cfg | ||
2 | |||
3 | include features/serial/8250.scc | ||
4 | {{ if xserver == "y" and xserver_choice == "xserver_vesa": }} | ||
5 | include cfg/vesafb.scc | ||
6 | {{ if xserver == "y" and xserver_choice == "xserver_i915": }} | ||
7 | include features/i915/i915.scc | ||
8 | include cfg/usb-mass-storage.scc | ||
9 | include features/power/intel.scc | ||
10 | |||
11 | include features/logbuf/size-normal.scc | ||
12 | |||
13 | include features/latencytop/latencytop.scc | ||
14 | include features/profiling/profiling.scc | ||
15 | |||
16 | kconf hardware user-config.cfg | ||
17 | include user-patches.scc | ||
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/kernel-list.noinstall b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/kernel-list.noinstall new file mode 100644 index 0000000000..14cefa60c0 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/x86_64/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/x86_64/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.0": }} linux-yocto-rt_3.0.bbappend b/scripts/lib/bsp/substrate/target/arch/x86_64/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/x86_64/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.0": }} linux-yocto-rt_3.0.bbappend | |||
@@ -0,0 +1,39 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
2 | |||
3 | PR := "${PR}.1" | ||
4 | |||
5 | COMPATIBLE_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": }} | ||
16 | KBRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
17 | {{ if need_new_kbranch == "n": }} | ||
18 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
19 | |||
20 | {{ if need_new_kbranch == "y": }} | ||
21 | YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
22 | |||
23 | KMACHINE_{{=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": }} | ||
27 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
28 | |||
29 | SRC_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/x86_64/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.2": }} linux-yocto-rt_3.2.bbappend b/scripts/lib/bsp/substrate/target/arch/x86_64/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/x86_64/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.2": }} linux-yocto-rt_3.2.bbappend | |||
@@ -0,0 +1,39 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
2 | |||
3 | PR := "${PR}.1" | ||
4 | |||
5 | COMPATIBLE_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": }} | ||
16 | KBRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
17 | {{ if need_new_kbranch == "n": }} | ||
18 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
19 | |||
20 | {{ if need_new_kbranch == "y": }} | ||
21 | YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
22 | |||
23 | KMACHINE_{{=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": }} | ||
27 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
28 | |||
29 | SRC_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/x86_64/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.0": }} linux-yocto_3.0.bbappend b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.0": }} linux-yocto_3.0.bbappend new file mode 100644 index 0000000000..377e6a74a3 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.0": }} linux-yocto_3.0.bbappend | |||
@@ -0,0 +1,41 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
2 | |||
3 | PR := "${PR}.1" | ||
4 | |||
5 | COMPATIBLE_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/common-pc-64" }} | ||
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/common-pc-64/base" }} | ||
14 | |||
15 | {{ if need_new_kbranch == "y": }} | ||
16 | KBRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
17 | {{ if need_new_kbranch == "n": }} | ||
18 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
19 | |||
20 | KMACHINE_{{=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": }} | ||
24 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
25 | |||
26 | {{ if need_new_kbranch == "y": }} | ||
27 | YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
28 | {{ if need_new_kbranch == "n": }} | ||
29 | YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
30 | |||
31 | SRC_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/x86_64/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.2": }} linux-yocto_3.2.bbappend b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.2": }} linux-yocto_3.2.bbappend new file mode 100644 index 0000000000..17c98ee9e3 --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.2": }} linux-yocto_3.2.bbappend | |||
@@ -0,0 +1,39 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
2 | |||
3 | PR := "${PR}.1" | ||
4 | |||
5 | COMPATIBLE_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/common-pc-64" }} | ||
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/common-pc-64/base" }} | ||
14 | |||
15 | {{ if need_new_kbranch == "y": }} | ||
16 | KBRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
17 | {{ if need_new_kbranch == "n": }} | ||
18 | KBRANCH_{{=machine}} = "{{=existing_kbranch}}" | ||
19 | |||
20 | {{ if need_new_kbranch == "y": }} | ||
21 | YOCTO_KERNEL_EXTERNAL_BRANCH_{{=machine}} = "{{=new_kbranch}}/{{=machine}}" | ||
22 | |||
23 | KMACHINE_{{=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": }} | ||
27 | KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc" | ||
28 | |||
29 | SRC_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" | ||