summaryrefslogtreecommitdiffstats
path: root/examples/recipes/linux.yml
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2024-04-04 00:40:06 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2024-04-04 01:16:14 +0200
commit239a830981b6641a56b44e192b7ac60e38942a3f (patch)
tree8223ebb140b3ddca629ee2bab2a49855f0ba5e97 /examples/recipes/linux.yml
parentb2ce46f9e4130f9e30d2eaa486558bf16af31b50 (diff)
downloadrebel-239a830981b6641a56b44e192b7ac60e38942a3f.tar
rebel-239a830981b6641a56b44e192b7ac60e38942a3f.zip
examples: always set version in content, not filename
Diffstat (limited to 'examples/recipes/linux.yml')
-rw-r--r--examples/recipes/linux.yml61
1 files changed, 61 insertions, 0 deletions
diff --git a/examples/recipes/linux.yml b/examples/recipes/linux.yml
new file mode 100644
index 0000000..53a0bd7
--- /dev/null
+++ b/examples/recipes/linux.yml
@@ -0,0 +1,61 @@
+meta:
+ version: '6.5.5'
+tasks:
+ unpack:
+ fetch:
+ - name: '{{basename}}-{{version}}.tar.xz'
+ sha256: '8cf10379f7df8ea731e09bff3d0827414e4b643dd41dc99d0af339669646ef95'
+ run: |
+ tar xf {{dldir}}/{{basename}}-{{version}}.tar.xz
+
+ configure:
+ args:
+ host: 'platform'
+ inherit:
+ task: 'unpack'
+ build_depends:
+ - recipe: 'gcc'
+ task: 'install'
+ run: |
+ mkdir {{basename}}-build
+ cd {{basename}}-build
+ make \
+ -f ../{{basename}}-{{version}}/Makefile \
+ ARCH={{host.karch}} \
+ CROSS_COMPILE={{cross_compile}} \
+ defconfig
+
+ compile:
+ args:
+ host: 'platform'
+ inherit:
+ task: 'configure'
+ run: |
+ export KBUILD_BUILD_TIMESTAMP="@${SOURCE_DATE_EPOCH}"
+
+ cd {{basename}}-build
+ make \
+ ARCH={{host.karch}} \
+ CROSS_COMPILE={{cross_compile}} \
+ all
+
+ install:
+ args:
+ host: 'platform'
+ inherit:
+ task: 'compile'
+ output:
+ boot:
+ path: 'boot'
+ modules:
+ path: 'modules'
+ run: |
+ cd {{basename}}-build
+ mkdir -p {{destdir}}/boot
+ make \
+ ARCH={{host.karch}} \
+ CROSS_COMPILE={{cross_compile}} \
+ INSTALL_PATH={{destdir}}/boot \
+ INSTALL_MOD_PATH={{destdir}}/modules{{host.prefix}} \
+ DEPMOD=true \
+ install modules_install