armbian-build/packages/bsp/jethub/jethubj80/jethub_get_efuse_key_mac.cpp
Vyacheslav 3c4b69650e
Add support for JetHome JetHub D1/H1 home automation controllers (#3176)
* JetHome: add basic files for JetHub D1/H1 boards

Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>

* JetHome: add uboot patches

Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>

* JetHome: add kernel patches for JetHub D1/H1 (backport from 5.16-dt kernel)

Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>

* JetHome: add bsp packages for JetHub D1/H1

Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>

* JetHome: add kernel options for hardware JetHub D1/H1

Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>

* JetHome: fix targets-cli-beta.conf for JetHub D1/H1

Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>

* JetHome: add axg uboot creation function for JetHub D1

Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>
2021-10-19 21:05:36 +02:00

20 lines
465 B
C++

#include <cstdlib>
#include <iomanip>
#include "jethub_get_efuse_raw_key.h"
int main (/*int argc, char *argv[]*/) {
auto mac = getKey("mac");
if (mac.size() == 6) {
for (auto it = mac.begin(); it != mac.end(); ++it) {
std::cout << std::setfill('0') << std::setw(2) << std::right << std::hex << static_cast<int>(*it);
if (it < mac.end() - 1) {
std::cout << ":";
}
}
std::cout << std::endl;
}
return EXIT_SUCCESS;
}