summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/linux.yml63
1 files changed, 63 insertions, 0 deletions
diff --git a/examples/linux.yml b/examples/linux.yml
new file mode 100644
index 0000000..33f11d7
--- /dev/null
+++ b/examples/linux.yml
@@ -0,0 +1,63 @@
+tasks:
+ unpack:
+ fetch:
+ - name: 'linux-5.10.66.tar.xz'
+ sha256: '5dfa06bbbbd164b9ea669ec637b1e6d05fb5fea8ef3aeb6729f2cbcd0dfcc8a7'
+ run: |
+ tar xf {{dldir}}/linux-5.10.66.tar.xz
+
+ configure:
+ args:
+ host: 'platform'
+ inherit:
+ task: 'unpack'
+ build_depends:
+ - recipe: 'gcc'
+ task: 'install'
+ run: |
+ mkdir linux-build
+ cd linux-build
+ make \
+ -f ../linux-5.10.66/Makefile \
+ ARCH={{host.karch}} \
+ CROSS_COMPILE={{build.prefix}}/bin/{{host.gnu_triplet}}- \
+ defconfig
+
+ compile:
+ args:
+ host: 'platform'
+ inherit:
+ task: 'configure'
+ build_depends:
+ - recipe: 'gcc'
+ task: 'install'
+ run: |
+ cd linux-build
+ make \
+ ARCH={{host.karch}} \
+ CROSS_COMPILE={{build.prefix}}/bin/{{host.gnu_triplet}}- \
+ all -j8
+
+ install:
+ args:
+ host: 'platform'
+ inherit:
+ task: 'compile'
+ build_depends:
+ - recipe: 'gcc'
+ task: 'install'
+ output:
+ boot:
+ path: 'boot'
+ modules:
+ path: 'modules'
+ run: |
+ cd linux-build
+ mkdir -p {{destdir}}/boot
+ make \
+ ARCH={{host.karch}} \
+ CROSS_COMPILE={{build.prefix}}/bin/{{host.gnu_triplet}}- \
+ INSTALL_PATH={{destdir}}/boot \
+ INSTALL_MOD_PATH={{destdir}}/modules{{host.prefix}} \
+ DEPMOD=true \
+ install modules_install