ref: 4914b987d711b076542b72c1717fb59c6ebebef9
parent: a868b4a2d91a26130b15a10665297a9f6a8ef1b5
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Jun 5 18:56:47 EDT 2023
imx8: setup $terminal environment variable in init0()
--- a/sys/src/9/imx8/main.c
+++ b/sys/src/9/imx8/main.c
@@ -140,11 +140,13 @@
void
init0(void)
{
- char **sp;
+ char buf[2*KNAMELEN], **sp;
chandevinit();
if(!waserror()){
+ snprint(buf, sizeof(buf), "%s %s", "ARM64", conffile);
+ ksetenv("terminal", buf, 0);
ksetenv("cputype", "arm64", 0);
if(cpuserver)
ksetenv("service", "cpu", 0);