Dagger
Search

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
NameTypeDefault ValueDescription
deviceSpecString !-No description provided
targetString !-No description provided
contextDirDirectory !-No description provided
imageRefString "dciangot/yosys:latest"No description provided
pushBoolean falseNo description provided
appendManifestBoolean -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
NameTypeDefault ValueDescription
firmwareFile !-No description provided
deviceSpecString !-No description provided
targetString !-No description provided
bringContextDirectory !-No description provided
appendManifestBoolean -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)
}