diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-05-17 20:34:52 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-06-12 10:45:36 -0400 |
commit | b15c5d7a516d4e3466753e19df77d34b404d397e (patch) | |
tree | e521402caee20cf6415ae90fe68f2e8e23d9f68f /sim/common | |
parent | 8c60e272c73b8021601f6e091879bc0fa1c5ab45 (diff) | |
download | gdb-b15c5d7a516d4e3466753e19df77d34b404d397e.zip gdb-b15c5d7a516d4e3466753e19df77d34b404d397e.tar.gz gdb-b15c5d7a516d4e3466753e19df77d34b404d397e.tar.bz2 |
sim: unify platform function & header tests
Move the various platform tests up a level to avoid duplication
across the ports. When building multiple versions, this speeds
things up a bit.
For now we move the obvious stuff up a level, but we don't turn
own the config.h entirely just yet -- we still have some tests
related to libraries that need consideration.
Diffstat (limited to 'sim/common')
-rw-r--r-- | sim/common/ChangeLog | 4 | ||||
-rw-r--r-- | sim/common/defs.h | 14 |
2 files changed, 17 insertions, 1 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 2cc89c8..25cf339 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,7 @@ +2021-06-12 Mike Frysinger <vapier@gentoo.org> + + * defs.h: Include ../config.h. Undefine PACKAGE* defines. + 2021-06-09 Mike Frysinger <vapier@gentoo.org> * sim-basics.h (NULL): Delete. diff --git a/sim/common/defs.h b/sim/common/defs.h index 957e36d..4b5da7b 100644 --- a/sim/common/defs.h +++ b/sim/common/defs.h @@ -34,9 +34,21 @@ #undef PACKAGE_URL #undef PACKAGE_VERSION -/* Include sim's various configure tests. */ +/* Include arch-specific sim's various configure tests. */ #include "config.h" +/* Reset macros that our config.h will provide. */ +#undef PACKAGE +#undef PACKAGE_BUGREPORT +#undef PACKAGE_NAME +#undef PACKAGE_STRING +#undef PACKAGE_TARNAME +#undef PACKAGE_URL +#undef PACKAGE_VERSION + +/* Include common sim's various configure tests. */ +#include "../config.h" + #endif #endif |