diff options
Diffstat (limited to 'examples/recipes/linux')
-rw-r--r-- | examples/recipes/linux/build.uapi-headers.yml | 19 | ||||
-rw-r--r-- | examples/recipes/linux/build.yml | 61 |
2 files changed, 80 insertions, 0 deletions
diff --git a/examples/recipes/linux/build.uapi-headers.yml b/examples/recipes/linux/build.uapi-headers.yml new file mode 100644 index 0000000..a302aa9 --- /dev/null +++ b/examples/recipes/linux/build.uapi-headers.yml @@ -0,0 +1,19 @@ +tasks: + unpack: + fetch: + - name: '{{name}}-{{version}}.tar.xz' + sha256: '8cf10379f7df8ea731e09bff3d0827414e4b643dd41dc99d0af339669646ef95' + run: | + tar xf {{dldir}}/{{name}}-{{version}}.tar.xz + + install: + args: + host: 'platform' + parent: + task: 'unpack' + output: + default: {} + run: | + cd {{name}}-{{version}} + make INSTALL_HDR_PATH={{destdir}}{{host.prefix}} ARCH={{host.karch}} headers_install + diff --git a/examples/recipes/linux/build.yml b/examples/recipes/linux/build.yml new file mode 100644 index 0000000..3f84291 --- /dev/null +++ b/examples/recipes/linux/build.yml @@ -0,0 +1,61 @@ +meta: + version: '6.5.5' +tasks: + unpack: + fetch: + - name: '{{name}}-{{version}}.tar.xz' + sha256: '8cf10379f7df8ea731e09bff3d0827414e4b643dd41dc99d0af339669646ef95' + run: | + tar xf {{dldir}}/{{name}}-{{version}}.tar.xz + + configure: + args: + host: 'platform' + parent: + task: 'unpack' + build_depends: + - recipe: 'gcc' + task: 'install' + run: | + mkdir {{name}}-build + cd {{name}}-build + make \ + -f ../{{name}}-{{version}}/Makefile \ + ARCH={{host.karch}} \ + CROSS_COMPILE={{cross_compile}} \ + defconfig + + compile: + args: + host: 'platform' + parent: + task: 'configure' + run: | + export KBUILD_BUILD_TIMESTAMP="@${SOURCE_DATE_EPOCH}" + + cd {{name}}-build + make \ + ARCH={{host.karch}} \ + CROSS_COMPILE={{cross_compile}} \ + all + + install: + args: + host: 'platform' + parent: + task: 'compile' + output: + boot: + path: 'boot' + modules: + path: 'modules' + run: | + cd {{name}}-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 |