mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
dhrystone baremetal!!!
Factor out --optimization-level and --static to all builds More conventionally set argv[0] to be the basename of the image. Fix https://github.com/cirosantilli/linux-kernel-module-cheat/issues/90
This commit is contained in:
@@ -49,10 +49,7 @@ Default: build all examples that have their package dependencies met, e.g.:
|
||||
build_dir = self.get_build_dir()
|
||||
cc_flags = [
|
||||
'-I', self.env['root_dir'], LF,
|
||||
'-O{}'.format(self.env['optimization_level']), LF,
|
||||
] + self.sh.shlex_split(self.env['ccflags'])
|
||||
if self.env['static']:
|
||||
cc_flags.extend(['-static', LF])
|
||||
] + self.env['ccflags']
|
||||
extra_obj_lkmc_common = os.path.join(
|
||||
build_dir,
|
||||
self.env['common_basename_noext'] + self.env['obj_ext']
|
||||
@@ -114,7 +111,7 @@ Default: build all examples that have their package dependencies met, e.g.:
|
||||
def get_build_dir(self):
|
||||
return self.env['userland_build_dir']
|
||||
|
||||
def setup_one(self):
|
||||
def setup_one_build(self):
|
||||
self.env['targets'] = self.resolve_targets(
|
||||
[self.env['userland_source_dir']],
|
||||
self.env['targets']
|
||||
|
||||
Reference in New Issue
Block a user