initial commit
This commit is contained in:
commit
85d50ee958
26 files changed
+2146
No files matched your search
@@ -0,0 +1,18 @@
|
||||
package utils
|
||||
|
||||
import "os"
|
||||
|
||||
func GetTargetFilename(typ string) string {
|
||||
switch typ {
|
||||
case "kernel":
|
||||
return os.Getenv("KERNEL_FILE")
|
||||
case "dtb":
|
||||
return os.Getenv("DTB_FILE")
|
||||
case "uboot":
|
||||
return os.Getenv("UBOOT_FILE")
|
||||
case "uboot_bin":
|
||||
return os.Getenv("UBOOT_BIN_FILE")
|
||||
default:
|
||||
return ""
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user