From c80144b7f08736ce769fd69b3f5a98c86b430d5b Mon Sep 17 00:00:00 2001 From: David Shah Date: Thu, 15 Oct 2020 16:32:55 +0100 Subject: nexus: Generate FASM files that can be used standalone Signed-off-by: David Shah --- nexus/arch.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'nexus/arch.cc') diff --git a/nexus/arch.cc b/nexus/arch.cc index 40efa62d..8005a130 100644 --- a/nexus/arch.cc +++ b/nexus/arch.cc @@ -77,6 +77,14 @@ Arch::Arch(ArchArgs args) : args(args) log_error("Unknown device string '%s' (expected device name like 'LIFCL-40-8SG72C')\n", args.device.c_str()); package = args.device.substr(last_sep + 2, (package_end - (last_sep + 2)) + 1); rating = args.device.substr(package_end + 1); + + // Check for 'ES' part + if (rating.size() > 1 && rating.substr(1) == "ES") { + variant = "ES"; + } else { + variant = ""; + } + // Load database std::string chipdb = stringf("nexus/chipdb-%s.bin", family.c_str()); auto db_ptr = reinterpret_cast *>(get_chipdb(chipdb)); -- cgit v1.2.3