kernel modules: hack up quick floating point example

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-06-02 00:00:01 +00:00
parent 7f917af66b
commit 819ef42ea4
5 changed files with 121 additions and 11 deletions

View File

@@ -128,18 +128,18 @@ class PathProperties:
self['allowed_archs'] is None or
env['arch'] in self['allowed_archs']
) and
(
not (
(
env['mode'] == 'userland' and
(
self['userland'] and
ext in env['build_in_exts']
not self['userland'] or
not ext in env['build_in_exts']
)
) or
(
env['mode'] == 'baremetal' and (
self['baremetal'] and
ext in env['baremetal_build_in_exts']
not self['baremetal'] or
not ext in env['baremetal_build_in_exts']
)
)
) and
@@ -311,6 +311,12 @@ path_properties_tuples = (
'getchar.c': {'interactive': True},
}
),
'kernel_modules': (
{},
{
'float.c': {'allowed_archs': 'x86_64'}
},
),
'lkmc.c': {
'baremetal': True,
'userland': True,