summaryrefslogtreecommitdiffstats
path: root/examples/recipes/linux@5.10.66.yml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/recipes/linux@5.10.66.yml')
-rw-r--r--examples/recipes/linux@5.10.66.yml59
1 files changed, 59 insertions, 0 deletions
diff --git a/examples/recipes/linux@5.10.66.yml b/examples/recipes/linux@5.10.66.yml
new file mode 100644
index 0000000..22b17c2
--- /dev/null
+++ b/examples/recipes/linux@5.10.66.yml
@@ -0,0 +1,59 @@
+tasks:
+ unpack:
+ fetch:
+ - name: '{{pn}}-{{pv}}.tar.xz'
+ sha256: '5dfa06bbbbd164b9ea669ec637b1e6d05fb5fea8ef3aeb6729f2cbcd0dfcc8a7'
+ run: |
+ tar xf {{dldir}}/{{pn}}-{{pv}}.tar.xz
+
+ configure:
+ args:
+ host: 'platform'
+ inherit:
+ task: 'unpack'
+ build_depends:
+ - recipe: 'gcc'
+ task: 'install'
+ run: |
+ mkdir {{pn}}-build
+ cd {{pn}}-build
+ make \
+ -f ../{{pn}}-{{pv}}/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 {{pn}}-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 {{pn}}-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