summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2021-09-25 19:36:59 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2021-09-25 21:16:07 +0200
commit7c349e6aed9b34bdbbb1e57b240ba86cbe23f432 (patch)
tree44b326d9bed1eb8757c1cc7f08758e049cf644c6 /examples
parent316e70c1c55587e969a0426c62d664de3e4d3c5a (diff)
downloadrebel-7c349e6aed9b34bdbbb1e57b240ba86cbe23f432.tar
rebel-7c349e6aed9b34bdbbb1e57b240ba86cbe23f432.zip
examples: add linux kernel image
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