BMBuildkit
No long description provided.
Installation
dagger install github.com/BondMachineHQ/BMBuildkit-dagger@bd549451c0bb4d3f538d3b473307074e9c71b52a
Types
Bmbuildkit 🔗
build() 🔗
Example usage for building and pushing a firmware to a registry for Lattice IceStick:
dagger call build --push
--device-spec lattice/ice40/yosys
--target dciangot/my_fpga_firmware:v1
--context ./examples/blinky/ice40 "
if you want to store the firmware locally, use export:
dagger export build --device-spec lattice/ice40/yosys
--target dciangot/my_fpga_firmware:v1
--context ./examples/blinky/ice40 "
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
deviceSpec | String ! | - | No description provided |
target | String ! | - | No description provided |
contextDir | Directory ! | - | No description provided |
imageRef | String | "dciangot/yosys:latest" | No description provided |
push | Boolean | false | No description provided |
appendManifest | Boolean | - | No description provided |
Example
dagger -m github.com/BondMachineHQ/BMBuildkit-dagger@bd549451c0bb4d3f538d3b473307074e9c71b52a call \
build --device-spec string --target string --context-dir DIR_PATH
func (m *myModule) example(deviceSpec string, target string, contextDir *Directory) *Directory {
return dag.
BMBuildkit().
Build(deviceSpec, target, contextDir)
}
@function
def example(device_spec: str, target: str, context_dir: dagger.Directory) -> dagger.Directory:
return (
dag.b_m_buildkit()
.build(device_spec, target, context_dir)
)
@func()
example(deviceSpec: string, target: string, contextDir: Directory): Directory {
return dag
.bMBuildkit()
.build(deviceSpec, target, contextDir)
}
push() 🔗
Example usage to push a pre-built firmware binary: ”’
dagger call push --target dciangot/my_fpga_firmware:v1 \
--firmware ./examples/blinky/ice40/firmware.bin \
--bring-context ./examples/blinky/ice40
--device-spec lattice/ice40/yosys"
”`
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
firmware | File ! | - | No description provided |
deviceSpec | String ! | - | No description provided |
target | String ! | - | No description provided |
bringContext | Directory ! | - | No description provided |
appendManifest | Boolean | - | No description provided |
Example
dagger -m github.com/BondMachineHQ/BMBuildkit-dagger@bd549451c0bb4d3f538d3b473307074e9c71b52a call \
push --firmware file:path --device-spec string --target string --bring-context DIR_PATH
func (m *myModule) example(ctx context.Context, firmware *File, deviceSpec string, target string, bringContext *Directory) string {
return dag.
BMBuildkit().
Push(ctx, firmware, deviceSpec, target, bringContext)
}
@function
async def example(firmware: dagger.File, device_spec: str, target: str, bring_context: dagger.Directory) -> str:
return await (
dag.b_m_buildkit()
.push(firmware, device_spec, target, bring_context)
)
@func()
async example(firmware: File, deviceSpec: string, target: string, bringContext: Directory): Promise<string> {
return dag
.bMBuildkit()
.push(firmware, deviceSpec, target, bringContext)
}