|
10 | 10 | from module.debug import shell_here |
11 | 11 | from module.path import ProjectPaths |
12 | 12 | from module.profile import BranchProfile |
13 | | -from module.util import XMAKE_ARCH_MAP, add_objects_to_static_lib, ensure, overlayfs_ro |
| 13 | +from module.util import XMAKE_ARCH_MAP, add_objects_to_static_lib, ensure, overlayfs_ro, remove_info_main_menu |
14 | 14 | from module.util import cflags_B, configure, make_custom, make_default, make_destdir_install |
15 | 15 | from module.util import meson_build, meson_config, meson_flags_B, meson_install |
16 | 16 | from module.util import xmake_build, xmake_config, xmake_install |
@@ -78,6 +78,8 @@ def _binutils(ver: BranchProfile, paths: ProjectPaths, config: argparse.Namespac |
78 | 78 | 'install', |
79 | 79 | ], jobs = 1) |
80 | 80 |
|
| 81 | + remove_info_main_menu(paths.layer_ABB.binutils) |
| 82 | + |
81 | 83 | license_dir = paths.layer_ABB.binutils / 'share/licenses/binutils' |
82 | 84 | ensure(license_dir) |
83 | 85 | for file in ['COPYING', 'COPYING3', 'COPYING.LIB', 'COPYING3.LIB']: |
@@ -368,6 +370,8 @@ def _gcc(ver: BranchProfile, paths: ProjectPaths, config: argparse.Namespace): |
368 | 370 | atomic_objects.append(wrapper_obj) |
369 | 371 | add_objects_to_static_lib(f'{ver.target}-ar', libgcc_a, atomic_objects) |
370 | 372 |
|
| 373 | + remove_info_main_menu(paths.layer_ABB.gcc) |
| 374 | + |
371 | 375 | license_dir = paths.layer_ABB.gcc / 'share/licenses/gcc' |
372 | 376 | ensure(license_dir) |
373 | 377 | for file in ['COPYING', 'COPYING3', 'COPYING.RUNTIME', 'COPYING.LIB', 'COPYING3.LIB']: |
@@ -452,6 +456,8 @@ def _gdb(ver: BranchProfile, paths: ProjectPaths, config: argparse.Namespace): |
452 | 456 | f.write('register_libstdcxx_printers(None)\n') |
453 | 457 | f.write('end\n') |
454 | 458 |
|
| 459 | + remove_info_main_menu(paths.layer_ABB.gdb) |
| 460 | + |
455 | 461 | # collision with binutils |
456 | 462 | for info_file in ['bfd.info', 'ctf-spec.info', 'sframe-spec.info']: |
457 | 463 | os.unlink(paths.layer_ABB.gdb / 'share/info' / info_file) |
@@ -497,6 +503,8 @@ def _gmake(ver: BranchProfile, paths: ProjectPaths, config: argparse.Namespace): |
497 | 503 | make_default(build_dir, config.jobs) |
498 | 504 | make_destdir_install(build_dir, paths.layer_ABB.make) |
499 | 505 |
|
| 506 | + remove_info_main_menu(paths.layer_ABB.make) |
| 507 | + |
500 | 508 | license_dir = paths.layer_ABB.make / 'share/licenses/make' |
501 | 509 | ensure(license_dir) |
502 | 510 | shutil.copy(paths.src_dir.make / 'COPYING', license_dir / 'COPYING') |
|
0 commit comments