cheatsheet.md (fc72bba55f2fccd57130227eb3e2c5427d1b732b) | cheatsheet.md (267a0d683eb1f2cb28ecd50cbf61133c339ec0ed) |
---|---|
1 2# OpenBMC cheatsheet 3 4This document is intended to provide a set of recipes for common OpenBMC 5customisation tasks, without having to know the full yocto build process. 6 7## Using a local kernel build 8 9The kernel recipe is in: 10 11``` 12 meta-phosphor/common/recipes-kernel/linux/linux-obmc_X.Y.bb 13``` 14 15To use a local git tree, change the `SRC_URI` to a git:// URL without | 1 2# OpenBMC cheatsheet 3 4This document is intended to provide a set of recipes for common OpenBMC 5customisation tasks, without having to know the full yocto build process. 6 7## Using a local kernel build 8 9The kernel recipe is in: 10 11``` 12 meta-phosphor/common/recipes-kernel/linux/linux-obmc_X.Y.bb 13``` 14 15To use a local git tree, change the `SRC_URI` to a git:// URL without |
16a hostname. For example: | 16a hostname, and remove the `protocol=git` parameter. For example: |
17 18``` | 17 18``` |
19SRC_URI = "git:///home/jk/devel/linux;protocol=git;branch=${KBRANCH}" | 19SRC_URI = "git:///home/jk/devel/linux;branch=${KBRANCH}" |
20``` 21 | 20``` 21 |
22The `SRCREV` variable can be used to set an explicit git commit. The 23default (`${AUTOREV}`) will use the latest commit in `KBRANCH`. | 22The `SRCREV` variable can be used to set an explicit git commit, or 23set to `"${AUTOREV}"` to use the latest commit in `KBRANCH`. |
24 25## Building for Palmetto 26 27The Palmetto target is `palmetto`. 28 29If you are starting from scratch without a `build/conf` directory you can just: 30``` 31$ cd openbmc --- 344 unchanged lines hidden --- | 24 25## Building for Palmetto 26 27The Palmetto target is `palmetto`. 28 29If you are starting from scratch without a `build/conf` directory you can just: 30``` 31$ cd openbmc --- 344 unchanged lines hidden --- |