Changeset 71b4444 in mainline for kernel/meson.build


Ignore:
Timestamp:
2023-10-22T16:59:42Z (7 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
78f0422c, dd7df1c
Parents:
590cb6d2 (diff), 2944b5a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge meson script updates for new toolchain

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/meson.build

    r590cb6d2 r71b4444  
    8989        '-T', meson.current_build_dir() / '_link.ld',
    9090]
     91# The kernel is built as ELF but then copied as a blob of bytes and
     92# the permissions are not relevant anyway (needed for binutils 2.39+).
     93kernel_link_args += ldflags_ignore_rwx_segments
    9194
    9295if CONFIG_LTO
     
    101104kernel_c_args = arch_kernel_c_args + kernel_defs + [
    102105        '-ffreestanding',
    103         # TODO: remove this flag
    104         cc.get_supported_arguments([ '-Wno-cast-function-type' ]),
     106
     107        cc.get_supported_arguments([
     108                # TODO: remove this flag
     109                '-Wno-cast-function-type',
     110
     111                # When accessing specific memory addresses that are below
     112                # normal page size, the compiler may assume that we actually
     113                # dereferenced NULL pointer and warns us about that.
     114                # But in kernel we often need to access these addresses
     115                # directly hence we need to ignore these warnings.
     116                #
     117                # TODO: might make more sense to disable this selectively
     118                # in specific files (or better yet, for specific lines).
     119                '--param=min-pagesize=0',
     120        ]),
    105121]
    106122
Note: See TracChangeset for help on using the changeset viewer.