From 5e65ace9584e1ad99475eaa2542670c0f426fc6e Mon Sep 17 00:00:00 2001 From: Clayton Craft Date: Sat, 18 Feb 2023 22:57:43 -0800 Subject: [PATCH] internal/bootdeploy: add new package As a stub, but will be implemented soon... --- internal/bootdeploy/bootdeploy.go | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 internal/bootdeploy/bootdeploy.go diff --git a/internal/bootdeploy/bootdeploy.go b/internal/bootdeploy/bootdeploy.go new file mode 100644 index 0000000..1206a10 --- /dev/null +++ b/internal/bootdeploy/bootdeploy.go @@ -0,0 +1,29 @@ +package bootdeploy + +import () + +type BootDeploy struct { + inDir string + outDir string + ubootBoardname string +} + +// New returns a new BootDeploy, which then runs: +// +// boot-deploy -d indir -o outDir +// +// ubootBoardname is used for copying in some u-boot files prior to running +// boot-deploy. This is optional, passing an empty string is ok if this is not +// needed. +func New(inDir, outDir, ubootBoardname string) *BootDeploy { + return &BootDeploy{ + inDir: inDir, + outDir: outDir, + ubootBoardname: ubootBoardname, + } +} + +func (b *BootDeploy) Run() error { + + return nil +}