ajdlinux / openpower.xyz-snowpatch

Miscellaneous build scripts for openpower.xyz snowpatch testing
0 stars 0 forks source link

Build openbmc kernel #1

Open shenki opened 6 years ago

shenki commented 6 years ago

The openbmc patchwork lives here:

http://patchwork.ozlabs.org/project/openbmc/list/

The mailing list is used for two different projects; both u-boot and the Linux kernel.

Development is targeted at branches, where developers set the project name and intended branch in the subject line:

[PATCH linux dev-4.10 v3] ARM: dts: aspeed: Add ARM system BMC device tree

In patchwork, this is parsed out as:

[linux,dev-4.10,v3] ARM: dts: aspeed: Add ARM system BMC device tree

Snowpatch would need to understand these tags and ensure it was testing against the correct project and branch. I suggest we start with linux and branch dev-4.13.

ruscur commented 6 years ago

Looks like we did add support for this to the patchwork API, called "prefixes".

https://patchwork.ozlabs.org/api/1.0/patches/870224/

    "prefixes": [
        "linux",
        "dev-4.10",
        "v3"
    ]

Looks like I almost got this working with an old implementation called categories: ruscur/snowpatch@c1cb325ce28f3fec95fa3a8c22892a3ba6b5cb5f so it wouldn't require too much plumbing.

ajdlinux commented 6 years ago

Ah, so that's what happened to categories. The plumbing for that is fairly straightforward.

We should be able to more or less borrow the existing kernel build script we already have, we just need to fix up the ARM cross compilers and reference repositories pointed to the correct base.