mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
kernel modules: hack up quick floating point example
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user