imx8: setup $terminal environment variable in init0()

This commit is contained in:
cinap_lenrek 2023-06-05 22:56:47 +00:00
parent a868b4a2d9
commit 4914b987d7

View file

@ -140,11 +140,13 @@ isaconfig(char *, int, ISAConf *)
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);