From 3c5c9531a76bbff5486f67fc754e7542e6f12707 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Sun, 15 May 2016 23:30:04 +0100 Subject: Add strata/bsp-x86_32-ivi Change-Id: Id57409816f1d26cf3e303ba8a5210724c2a8c880 --- strata/bsp-x86_32-ivi.morph | 12 ++++ strata/bsp-x86_32-ivi/linux-x86-32-ivi.morph | 84 ++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) create mode 100644 strata/bsp-x86_32-ivi.morph create mode 100644 strata/bsp-x86_32-ivi/linux-x86-32-ivi.morph diff --git a/strata/bsp-x86_32-ivi.morph b/strata/bsp-x86_32-ivi.morph new file mode 100644 index 00000000..f3bf1fc8 --- /dev/null +++ b/strata/bsp-x86_32-ivi.morph @@ -0,0 +1,12 @@ +name: bsp-x86_32-ivi +kind: stratum +description: Set of components required for booting a 32-bit + x86 based system, with some options specific to IVI systems. +build-depends: +- morph: strata/bsp-x86_both-tools.morph +chunks: +- name: linux-x86-32-generic + morph: strata/bsp-x86_32-ivi/linux-x86-32-ivi.morph + repo: upstream:linux-stable + ref: afd2ff9b7e1b367172f18ba7f693dfb62bdcb2dc + unpetrify-ref: v4.4 diff --git a/strata/bsp-x86_32-ivi/linux-x86-32-ivi.morph b/strata/bsp-x86_32-ivi/linux-x86-32-ivi.morph new file mode 100644 index 00000000..400c549b --- /dev/null +++ b/strata/bsp-x86_32-ivi/linux-x86-32-ivi.morph @@ -0,0 +1,84 @@ +name: linux-x86-32-ivi +kind: chunk +products: +- artifact: linux-x86-32-ivi-devel + include: + - (usr/)?src/linux/.* +- artifact: linux-x86-32-ivi-bins + include: + - boot/.* +- artifact: linux-x86-32-ivi-libs + include: + - lib/.* +configure-commands: +- make defconfig +- scripts/config -e ATA +- scripts/config -e ATA_PIIX +- scripts/config -e AUTOFS4_FS +- scripts/config -e BLK_DEV_BSG +- scripts/config -e BLK_DEV_SD +- scripts/config -e BTRFS_FS +- scripts/config -e BTRFS_FS_POSIX_ACL +- scripts/config -e CFS_BANDWIDTH +- scripts/config -e CGROUPS +- scripts/config -e CGROUP_SCHED +- scripts/config -e CHECKPOINT_RESTORE +- scripts/config -e DEVPTS_MULTIPLE_INSTANCES +- scripts/config -e DEVTMPFS +- scripts/config -e DMIID +- scripts/config -e EFIVAR_FS +- scripts/config -e EFI_PARTITION +- scripts/config -e EPOLL +- scripts/config -e FAIR_GROUP_SCHED +- scripts/config -e FHANDLE +- scripts/config -d FW_LOADER_USER_HELPER +- scripts/config -e INOTIFY_USER +- scripts/config -e IPV6 +- scripts/config -e NET +- scripts/config -e NET_NS +- scripts/config -e PROC_FS +- scripts/config -e SATA_AHCI +- scripts/config -e SCSI +- scripts/config -e SCSI_MOD +- scripts/config -e SECCOMP +- scripts/config -e SIGNALFD +- scripts/config -e SYSFS +- scripts/config -d SYSFS_DEPRECATED +- scripts/config -e TIMERFD +- scripts/config -e TMPFS_POSIX_ACL +- scripts/config -e TMPFS_XATTR +- scripts/config -e UEVENT_HELPER_PATH="" +- 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-32-ivi-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_32. + 00-depmod: + - if which depmod; then (cd /lib/modules && for version in *; do depmod -a "$version"; done) fi -- cgit v1.2.1