2023-02-27 13:40:20 +01:00
|
|
|
/* Copyright (c) 2021-2023 Barcelona Supercomputing Center (BSC)
|
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later */
|
|
|
|
|
2023-02-16 11:04:50 +01:00
|
|
|
#include "emu/pv/cfg.h"
|
2023-03-22 16:01:55 +01:00
|
|
|
#include <limits.h>
|
2023-02-16 11:04:50 +01:00
|
|
|
#include <stdio.h>
|
2023-03-22 16:01:55 +01:00
|
|
|
#include <stdlib.h>
|
2023-02-16 11:04:50 +01:00
|
|
|
#include <sys/stat.h>
|
2023-03-22 16:01:55 +01:00
|
|
|
#include "common.h"
|
2023-02-16 11:04:50 +01:00
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
2023-07-25 16:26:31 +02:00
|
|
|
if (cfg_generate(".") != 0)
|
2023-02-16 11:04:50 +01:00
|
|
|
die("cfg_generate failed");
|
|
|
|
|
|
|
|
/* Check that one configuration file is present */
|
|
|
|
struct stat st;
|
2023-07-25 16:26:31 +02:00
|
|
|
if (stat("cfg/cpu/ovni/pid.cfg", &st) != 0)
|
2023-02-16 11:04:50 +01:00
|
|
|
die("stat failed");
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|