-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make VirtIO devices optional when compiling
- Loading branch information
Showing
13 changed files
with
177 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
// Copyright Cartesi and individual authors (see AUTHORS) | ||
// SPDX-License-Identifier: LGPL-3.0-or-later | ||
// | ||
// This program is free software: you can redistribute it and/or modify it under | ||
// the terms of the GNU Lesser General Public License as published by the Free | ||
// Software Foundation, either version 3 of the License, or (at your option) any | ||
// later version. | ||
// | ||
// This program is distributed in the hope that it will be useful, but WITHOUT ANY | ||
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
// PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Lesser General Public License along | ||
// with this program (see COPYING). If not, see <https://www.gnu.org/licenses/>. | ||
// | ||
|
||
#ifndef OS_FEATURES_H | ||
#define OS_FEATURES_H | ||
|
||
#if !defined(NO_TTY) | ||
#define HAVE_TTY | ||
#endif | ||
|
||
#if !defined(NO_THREADS) | ||
#define HAVE_THREADS | ||
#endif | ||
|
||
#if !defined(NO_TERMIOS) && !defined(_WIN32) && !defined(__wasi__) | ||
#define HAVE_TERMIOS | ||
#endif | ||
|
||
#if !defined(NO_IOCTL) && !defined(_WIN32) && !defined(__wasi__) | ||
#define HAVE_IOCTL | ||
#endif | ||
|
||
#if !defined(NO_MMAP) && !defined(_WIN32) && !defined(__wasi__) | ||
#define HAVE_MMAP | ||
#endif | ||
|
||
#if !defined(NO_MKDIR) | ||
#define HAVE_MKDIR | ||
#endif | ||
|
||
#if !defined(NO_TUNTAP) && defined(__linux__) | ||
#define HAVE_TUNTAP | ||
#endif | ||
|
||
#if !defined(NO_SLIRP) && !defined(__wasi__) | ||
#define HAVE_SLIRP | ||
#endif | ||
|
||
#if !defined(NO_SIGACTION) && !defined(__wasi__) && !defined(_WIN32) | ||
#define HAVE_SIGACTION | ||
#endif | ||
|
||
#if !defined(NO_SELECT) | ||
#define HAVE_SELECT | ||
#endif | ||
|
||
#if !defined(NO_POSIX_FILE) && !defined(__wasi__) && !defined(_WIN32) | ||
#define HAVE_POSIX_FS | ||
#endif | ||
|
||
#if !defined(NO_USLEEP) && defined(__unix__) | ||
#define HAVE_USLEEP | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.