refactoring machine.c, two files per device

This commit is contained in:
HL Yi committed 2026-10-08 18:43:05 -05:00
1 parent e67c928eb7
commit a6b0918885
92 files changed
+1841 -1527

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
#ifndef _MACHINE_DEFAULT_H_
#define _MACHINE_DEFAULT_H_
/*
* Fallback selected by machine.h when MACHINE_NAME is not defined on the
* command line. Firmware builds always pass -DMACHINE_NAME=<MACHINE>, so this
* is used by translation units that only need the machine.h declarations --
* notably the host-side tests under test/, which define their own `machine`
* object.
*
* MACHINE_MODEL is deliberately not defined here: a build that reaches this
* header must not silently pick up some default model string. Any code that
* needs MACHINE_MODEL therefore fails to compile unless a real machine is
* selected.
*/
#endif