summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2016-04-03 23:01:18 (GMT)
committerPaul Sherwood <paul.sherwood@codethink.co.uk>2016-04-23 14:33:34 (GMT)
commitcfc3fae66614ea3def60eb12719bf820183c12ed (patch)
tree2c667db885e8862273149b3ae253bc3db1c926f1
parent1c762659c81e6916dd65fc9721b1d6c1fd42d071 (diff)
downloaddefinitions-cfc3fae66614ea3def60eb12719bf820183c12ed.tar.gz
Add x86_64-ivi kernel
Add the mostcore driver to support MOST bus Change-Id: Iaf1de1f0a5d2d00be98f53f014fb1ea99488f872
-rw-r--r--strata/bsp-x86_64-ivi.morph12
-rw-r--r--strata/bsp-x86_64-ivi/linux-x86-64-ivi.morph48
2 files changed, 60 insertions, 0 deletions
diff --git a/strata/bsp-x86_64-ivi.morph b/strata/bsp-x86_64-ivi.morph
new file mode 100644
index 0000000..b94166c
--- /dev/null
+++ b/strata/bsp-x86_64-ivi.morph
@@ -0,0 +1,12 @@
+name: bsp-x86_64-ivi
+kind: stratum
+description: Set of components required for booting a 64-bit
+ x86 based system, with some options specific to IVI systems.
+build-depends:
+- morph: strata/bsp-x86_both-tools.morph
+chunks:
+- name: linux-x86-64-generic
+ morph: strata/bsp-x86_64-ivi/linux-x86-64-ivi.morph
+ repo: upstream:linux-stable
+ ref: afd2ff9b7e1b367172f18ba7f693dfb62bdcb2dc
+ unpetrify-ref: v4.4
diff --git a/strata/bsp-x86_64-ivi/linux-x86-64-ivi.morph b/strata/bsp-x86_64-ivi/linux-x86-64-ivi.morph
new file mode 100644
index 0000000..456a485
--- /dev/null
+++ b/strata/bsp-x86_64-ivi/linux-x86-64-ivi.morph
@@ -0,0 +1,48 @@
+name: linux-x86-64-ivi
+kind: chunk
+products:
+- artifact: linux-x86-64-ivi-devel
+ include:
+ - (usr/)?src/linux/.*
+- artifact: linux-x86-64-ivi-bins
+ include:
+ - boot/.*
+- artifact: linux-x86-64-ivi-libs
+ include:
+ - lib/.*
+configure-commands:
+- make defconfig
+- scripts/config -m CONFIG_DRM_CIRRUS_QEMU
+- scripts/config -m CONFIG_DRM_BOCHS
+- scripts/config -m CONFIG_DRM_VIRTIO_GPU
+- scripts/config -m CONFIG_BT_INTEL
+- scripts/config -m CONFIG_MOSTCORE
+- yes '' | make oldconfig
+build-commands:
+- make $MAKEFLAGS
+install-commands:
+- mkdir -p "$DESTDIR"/boot
+- make INSTALL_PATH="$DESTDIR"/boot install
+- make INSTALL_MOD_PATH="$DESTDIR" modules_install
+- install -d "$DESTDIR$PREFIX/src/linux"
+- |
+ (
+ printf 'Makefile\0'
+ printf 'Module.symvers\0'
+ find arch/x86 -maxdepth 1 -name 'Makefile*' -print0
+ find arch/x86 \( -name 'module.lds' -o -name 'Kbuild.platforms' -o -name 'Platform' \) -print0
+ find arch/x86 \( -type d -a \( -name include -o -name scripts \) \) -o \
+ \! -type d -a \( -path '*include/*' -o -path '*scripts/*' \) -print0
+ find include -name 'asm*' -prune -o -print0
+ find include/asm-generic -print0
+ find include/uapi -print0
+ find scripts -print0
+ ) | cpio -0pumd "$DESTDIR$PREFIX/src/linux"
+system-integration:
+ linux-x86-64-generic-misc:
+ # This is required for any modules to work correctly. However, it depends
+ # `depmod` from the 'kmod' chunk in the 'foundation' stratum, so it runs
+ # conditionally on `depmod` existing to avoid breaking in
+ # minimal-system-x86_64.
+ 00-depmod:
+ - if which depmod; then (cd /lib/modules && for version in *; do depmod -a "$version"; done) fi