diff --git a/BUILD.gn b/BUILD.gn index 9ee356195785892411f774dfc13c2b8a9e4a6a62..e48605fac274fc5373525ea835b820ab26bfada7 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -38,10 +38,8 @@ zircon_files = exec_script("//build/zircon/list_source_files.py", [], "list lines") supporting_templates = [ - "//build/zircon/boards.mako", "//build/zircon/header.mako", "//build/zircon/host_tool.mako", - "//build/zircon/main.mako", "//build/zircon/shared_library.mako", "//build/zircon/source_library.mako", "//build/zircon/static_library.mako", diff --git a/build/zircon/boards.mako b/build/zircon/boards.mako deleted file mode 100644 index ebc97ec7fc642448da97afdd63ea860b5ef4ceb4..0000000000000000000000000000000000000000 --- a/build/zircon/boards.mako +++ /dev/null @@ -1,14 +0,0 @@ -<%include file="header.mako" /> - -% for arch, boards in sorted(data.iteritems()): -${'else ' if not loop.first else ''}if (target_cpu == "${arch}") { - zircon_boards = [ - % for board in boards: - "${board}", - % endfor - ] -} -% endfor -else { - assert(false, "Unsupported architecture: $target_cpu.") -} diff --git a/build/zircon/create_gn_rules.py b/build/zircon/create_gn_rules.py index 8fcea27e691b54c4a53db134c9f6c4d880c27305..74def0533d8afe1955d111c25421f5a308072c4f 100755 --- a/build/zircon/create_gn_rules.py +++ b/build/zircon/create_gn_rules.py @@ -457,14 +457,6 @@ def generate_banjo_library(package, context): generate_build_file(build_path, 'banjo.mako', data, context) -def generate_board_list(package, context): - '''Generates a configuration file with the list of target boards.''' - build_path = os.path.join(context.out_dir, 'config', 'boards.gni') - generate_build_file(build_path, 'boards.mako', package, context) - build_path = os.path.join(context.out_dir, 'config', 'BUILD.gn') - generate_build_file(build_path, 'main.mako', package, context) - - class GenerationContext(object): '''Describes the context in which GN rules should be generated.''' @@ -492,7 +484,6 @@ def main(): args = parser.parse_args() out_dir = os.path.abspath(args.out) - shutil.rmtree(os.path.join(out_dir, 'config'), True) shutil.rmtree(os.path.join(out_dir, 'fidl'), True) shutil.rmtree(os.path.join(out_dir, 'banjo'), True) shutil.rmtree(os.path.join(out_dir, 'lib'), True) @@ -551,15 +542,6 @@ def main(): if debug: print('Processed %s (%s)' % (name, type)) - board_file_lines = [] - for cpu in ['arm64', 'x64']: - board_path = os.path.join(args.zircon_build, 'export', - 'boards-%s.list' % cpu) - with open(board_path, 'r') as board_file: - board_file_lines += [ '[%s]' % cpu ] + board_file.readlines() - package = parse_package(board_file_lines) - generate_board_list(package, context) - if __name__ == '__main__': sys.exit(main()) diff --git a/build/zircon/list_boards.py b/build/zircon/list_boards.py deleted file mode 100755 index 3bed6c1977e1c4d7ace236278aeb3b15c9845c6d..0000000000000000000000000000000000000000 --- a/build/zircon/list_boards.py +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env python -# Copyright 2018 The Fuchsia Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -import argparse -import sys - - -def main(): - parser = argparse.ArgumentParser() - parser.add_argument('--out', - help='Path to the output file', - required=True) - parser.add_argument('--boards', - help='Name of the supported boards', - nargs='*') - args = parser.parse_args() - - with open(args.out, 'w') as out_file: - out_file.write('\n'.join(args.boards)) - - -if __name__ == '__main__': - sys.exit(main()) diff --git a/build/zircon/main.mako b/build/zircon/main.mako deleted file mode 100644 index db53589e27c5c57ca00870f2610152529501eb24..0000000000000000000000000000000000000000 --- a/build/zircon/main.mako +++ /dev/null @@ -1,29 +0,0 @@ -<%include file="header.mako" /> - -action("boards") { - script = "//build/zircon/list_boards.py" - - board_file = "$root_out_dir/zircon-boards.list" - - outputs = [ - board_file, - ] - - args = [ - "--out", - rebase_path(board_file), - "--boards", - ] - % for arch, boards in sorted(data.iteritems()): - ${'else ' if not loop.first else ''}if (target_cpu == "${arch}") { - args += [ - % for board in boards: - "${board}", - % endfor - ] - } - % endfor - else { - assert(false, "Unsupported architecture: $target_cpu.") - } -} diff --git a/zircon/.gitignore b/zircon/.gitignore index f7db35fcac511ebbbefa6c7fc6327a7729eb8a15..753de22de789bc83b4f3c5cf4c2dce36101348b1 100644 --- a/zircon/.gitignore +++ b/zircon/.gitignore @@ -30,7 +30,6 @@ json_generator_tests_*.txt /prebuilt/config.mk.bak /AnalysisResult/ /public/banjo/ -/public/config/ /public/fidl/ /public/lib/ /public/sysroot/ diff --git a/zircon/BUILD.gn b/zircon/BUILD.gn index 7529e96ce4199c95ff8fbd29a134cd41896d20ee..00c2fcc3562d9b78fe23b241c4bfebac7505d514 100644 --- a/zircon/BUILD.gn +++ b/zircon/BUILD.gn @@ -185,17 +185,6 @@ if (current_toolchain == default_toolchain) { ] } - generated_file("boards-$cpu.list") { - testonly = true - outputs = [ - "$root_build_dir/export/$target_name", - ] - data_keys = [ "legacy_pkg_boards" ] - deps = [ - ":$cpu", - ] - } - # This lists just the one file to link against to get fdio. build_api_module("legacy-fdio-$cpu") { data_keys = [ "link_output" ] diff --git a/zircon/system/dev/board/gauss/BUILD.gn b/zircon/system/dev/board/gauss/BUILD.gn index bd32863e7804b0ec8ea7375368d9652cf99f3d1b..e5a5bee3844cf71c7d5737fcc1187f3c14b7d6e1 100644 --- a/zircon/system/dev/board/gauss/BUILD.gn +++ b/zircon/system/dev/board/gauss/BUILD.gn @@ -29,12 +29,6 @@ driver("gauss") { data_deps = [ ":gauss-i2c-test", ] - - # TODO(BLD-353): Temporary hacks for integrating with the legacy Fuchsia - # GN build. - metadata = { - legacy_pkg_boards = [ target_name ] - } } driver("gauss-i2c-test") { diff --git a/zircon/system/dev/board/hikey960/BUILD.gn b/zircon/system/dev/board/hikey960/BUILD.gn index c8d03511c4dc91c27c11e63b17f1e62acc4d3041..993f701352c73a16af242e9e773145dc85545347 100644 --- a/zircon/system/dev/board/hikey960/BUILD.gn +++ b/zircon/system/dev/board/hikey960/BUILD.gn @@ -30,12 +30,6 @@ driver("hikey960") { "$zx/kernel/target/arm64/boot-shim:hikey960", ":hi3660-i2c-test", # TODO: only for test configs ] - - # TODO(BLD-353): Temporary hacks for integrating with the legacy Fuchsia - # GN build. - metadata = { - legacy_pkg_boards = [ target_name ] - } } driver("hi3660-i2c-test") { diff --git a/zircon/system/dev/board/qemu/BUILD.gn b/zircon/system/dev/board/qemu/BUILD.gn index c3b0b304066f142fadddc9f61c432bfe028184e5..eae72c86977313c423139dd9bcd108d053bd7fd2 100644 --- a/zircon/system/dev/board/qemu/BUILD.gn +++ b/zircon/system/dev/board/qemu/BUILD.gn @@ -17,11 +17,5 @@ driver("qemu") { data_deps = [ "$zx/kernel/target/arm64/boot-shim:qemu", ] - - # TODO(BLD-353): Temporary hacks for integrating with the legacy Fuchsia - # GN build. - metadata = { - legacy_pkg_boards = [ target_name ] - } } } diff --git a/zircon/system/dev/board/vim/BUILD.gn b/zircon/system/dev/board/vim/BUILD.gn index adb2a7afa44e1db9d80f00620ce1cf7944ba7c94..f06e09d0cba41f9bf4e94e3ff661817be0ab1b9e 100644 --- a/zircon/system/dev/board/vim/BUILD.gn +++ b/zircon/system/dev/board/vim/BUILD.gn @@ -43,10 +43,4 @@ driver("vim") { "$zx/system/ulib/zx", "$zx/system/ulib/zxcpp", ] - - # TODO(BLD-353): Temporary hacks for integrating with the legacy Fuchsia - # GN build. - metadata = { - legacy_pkg_boards = [ "vim2" ] - } } diff --git a/zircon/system/dev/board/x86/BUILD.gn b/zircon/system/dev/board/x86/BUILD.gn index a4edb545699d29415b0cda63ac4fddfcb403a1d6..3174d099a3fe846368000663523cf9894d985701 100644 --- a/zircon/system/dev/board/x86/BUILD.gn +++ b/zircon/system/dev/board/x86/BUILD.gn @@ -82,10 +82,4 @@ driver("platform-bus-x86") { "$zx/third_party/lib/acpica", "$zx/third_party/ulib/chromiumos-platform-ec", ] - - # TODO(BLD-353): Temporary hacks for integrating with the legacy Fuchsia - # GN build. - metadata = { - legacy_pkg_boards = [ "pc" ] - } }