diff options
author | Violeta Menendez Gonzalez <violeta.menendez@codethink.co.uk> | 2014-09-30 15:36:34 +0000 |
---|---|---|
committer | Violeta Menendez Gonzalez <violeta.menendez@codethink.co.uk> | 2014-09-30 15:36:34 +0000 |
commit | 6cb5bbe8bfdaf2a0932dbee7dddff495042b0966 (patch) | |
tree | 030654add3d8c70a495056d488a4d39ba1c34334 /strata/bsp-jetson-devel | |
parent | edf589f356930ab47a04fec39bfcf55bac10329c (diff) | |
download | definitions-6cb5bbe8bfdaf2a0932dbee7dddff495042b0966.tar.gz |
My definitions for building u-boot and the kernel for the Jetson with drm as an out of tree module
Diffstat (limited to 'strata/bsp-jetson-devel')
-rw-r--r-- | strata/bsp-jetson-devel/drm-module.morph | 10 | ||||
-rw-r--r-- | strata/bsp-jetson-devel/linux-jetson-tk1.morph | 20 |
2 files changed, 28 insertions, 2 deletions
diff --git a/strata/bsp-jetson-devel/drm-module.morph b/strata/bsp-jetson-devel/drm-module.morph new file mode 100644 index 00000000..fffc6d31 --- /dev/null +++ b/strata/bsp-jetson-devel/drm-module.morph @@ -0,0 +1,10 @@ +name: drm-module +kind: chunk +build-commands: + - cd drm && make M=$(pwd) -C /usr/src/linux/ modules +install-commands: + - cd drm && make M="$(pwd)" -C /usr/src/linux/ INSTALL_MOD_PATH="$DESTDIR" modules_install +system-integration: + drm-module-misc: + 00-earlyconf: + - depmod -a diff --git a/strata/bsp-jetson-devel/linux-jetson-tk1.morph b/strata/bsp-jetson-devel/linux-jetson-tk1.morph index 3494f62b..3174c69b 100644 --- a/strata/bsp-jetson-devel/linux-jetson-tk1.morph +++ b/strata/bsp-jetson-devel/linux-jetson-tk1.morph @@ -1,7 +1,7 @@ name: linux-jetson-tk1 kind: chunk configure-commands: -- make ARCH=arm tegra12_defconfig +- make ARCH=arm tegra_defconfig - scripts/config -d KERNEL_LZO - scripts/config -e KERNEL_GZIP - scripts/config -e NAMESPACES @@ -50,4 +50,20 @@ build-commands: install-commands: - mkdir -p "$DESTDIR"/boot - cp arch/arm/boot/zImage "$DESTDIR"/boot/zImage -- cp arch/arm/boot/dts/tegra124-pm375.dtb "$DESTDIR"/boot/. +- cp arch/arm/boot/dts/tegra124-jetson-tk1.dtb "$DESTDIR"/boot/. +- make modules +- make INSTALL_MOD_PATH="$DESTDIR" modules_install +- install -d "$DESTDIR$PREFIX/src/linux" +- | + ( + printf 'Makefile\0' + printf 'Module.symvers\0' + find arch/arm -maxdepth 1 -name 'Makefile*' -print0 + find arch/arm \( -name 'module.lds' -o -name 'Kbuild.platforms' -o -name 'Platform' \) -print0 + find arch/arm \( -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" |