Squashed 'import-layers/meta-raspberrypi/' content from commit 2745399
Change-Id: I8a89d81813dea98209d089ef500a403ea4da5d9d
git-subtree-dir: import-layers/meta-raspberrypi
git-subtree-split: 2745399f75d7564fcc586d0365ff73be47849d0e
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/import-layers/meta-raspberrypi/conf/machine/include/rpi-base.inc b/import-layers/meta-raspberrypi/conf/machine/include/rpi-base.inc
new file mode 100644
index 0000000..56ca83e
--- /dev/null
+++ b/import-layers/meta-raspberrypi/conf/machine/include/rpi-base.inc
@@ -0,0 +1,53 @@
+include conf/machine/include/rpi-default-settings.inc
+include conf/machine/include/rpi-default-versions.inc
+include conf/machine/include/rpi-default-providers.inc
+
+SOC_FAMILY = "rpi"
+include conf/machine/include/soc-family.inc
+
+IMAGE_FSTYPES ?= "tar.bz2 ext3 rpi-sdimg"
+
+XSERVER = " \
+ xserver-xorg \
+ xf86-input-evdev \
+ xf86-input-mouse \
+ xf86-input-keyboard \
+ xf86-video-fbdev \
+ "
+
+# Really supported starting from linux-raspberrypi 3.18.y only
+KERNEL_DEVICETREE ?= " \
+ bcm2708-rpi-b.dtb \
+ bcm2708-rpi-b-plus.dtb \
+ bcm2709-rpi-2-b.dtb \
+ bcm2710-rpi-3-b.dtb \
+ \
+ overlays/hifiberry-amp-overlay.dtb \
+ overlays/hifiberry-dac-overlay.dtb \
+ overlays/hifiberry-dacplus-overlay.dtb \
+ overlays/hifiberry-digi-overlay.dtb \
+ overlays/i2c-rtc-overlay.dtb \
+ overlays/iqaudio-dac-overlay.dtb \
+ overlays/iqaudio-dacplus-overlay.dtb \
+ overlays/lirc-rpi-overlay.dtb \
+ overlays/pitft22-overlay.dtb \
+ overlays/pitft28-resistive-overlay.dtb \
+ overlays/pps-gpio-overlay.dtb \
+ overlays/rpi-ft5406-overlay.dtb \
+ overlays/w1-gpio-overlay.dtb \
+ overlays/w1-gpio-pullup-overlay.dtb \
+ overlays/pi3-miniuart-bt-overlay.dtb \
+ "
+KERNEL_IMAGETYPE ?= "Image"
+
+MACHINE_FEATURES += "apm usbhost keyboard vfat ext2 screen touchscreen alsa bluetooth wifi sdio"
+
+# Raspberry Pi has no hardware clock
+MACHINE_FEATURES_BACKFILL_CONSIDERED = "rtc"
+
+MACHINE_EXTRA_RRECOMMENDS += " kernel-modules"
+
+# Set Raspberrypi splash image
+SPLASH = "psplash-raspberrypi"
+
+IMAGE_BOOT_FILES ?= "bcm2835-bootfiles/* ${KERNEL_IMAGETYPE};${SDIMG_KERNELIMAGE}"