From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by mx.groups.io with SMTP id smtpd.web12.1027.1602009055416653436 for ; Tue, 06 Oct 2020 11:30:55 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=rrUiDRj7; spf=pass (domain: nuviainc.com, ip: 209.85.128.48, mailfrom: leif@nuviainc.com) Received: by mail-wm1-f48.google.com with SMTP id e2so4127496wme.1 for ; Tue, 06 Oct 2020 11:30:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuviainc-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=6BXLG8j+ysRr2JFp7SnY+QUDHAiafIoTvYFYgEnBRy4=; b=rrUiDRj789oTO7g61vl7hbjocdv53xt54xDODVzpLPu4QQBSJtgBi+i/3/iHqmlUbQ cQryYeUHBQfVjbvLEzevxd8Jhn/HyrVTztw/fa3LUczbrvJ0YcM+X6FgZN1fvF0Arygf eu8j1ebKS4CqwKKfK++sIQYpFUxn4NRmU3WT8TzNQCIPYLVh/uoVO7tfdnVxTx0kpmJb B6b9xRQY0fWoRbH9HQGyG5YKjQafaTHPYLYNf0RCvBuZe7SG8upZTBo7gQ2Qy8wlsIia ibfKjZhFQOf2Vbw/yL6Uh0wDDeKlhSxuoE/MvSq0sWsHQktICVLQd57T92pAf0iagUXF inzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=6BXLG8j+ysRr2JFp7SnY+QUDHAiafIoTvYFYgEnBRy4=; b=HxhxiMYeWgpGdJfNsOwn6eOAoEiHyINR1Ur/8k55BoM65xJ0f9qSUpuRYEZNp3SaPx o9Aa3BZLFP8J/pVUpuA0iTR5n3IUuD7eH8s0ZSA0iIFhm4dlHVbQLLfJLVP36nkD5Fyf Pwj/A/1DSRSrW9nrrcD/OsqoyAJluBABBEmYRU3Oj56u+bBXyxoBbVouzV9wfjTVlvQb /reYbY6i8axnyfF6jUz3XnmftSDo0gG+33y9vtcfK/awt8P9MErTJBwXsIYh2V4Pd7PM +3AUWCfnJcNoFQPL0pfC7RK+5XGtR9FvnxFoPBmiQsxhrNhMQ5xQeOU23XjUxusZH3pN fcSA== X-Gm-Message-State: AOAM531OCHbcQTITiCxyxAte1P0/Srt4OER2UluW4/fbjUrRbC+U0Sge vI97oLuOtnGg18ZoE9bbPYflzREOLh7UvLaovXxfUyznv2N0Ut7C71mHNFZ+C/8ydYti2SC+jGD lJ5LRF39rW9pD3bBzrWUB3bODLnugoTCH0SY8BmqohBvedFXIImuU8UCc+R7GNyb2xnv8 X-Google-Smtp-Source: ABdhPJyOMp90Z2nqDhcBZX2ZYGAIEuJHBcswR3P4leuPpYta8gX1RlCnap9tL+gsK7hwsOHAK0/QMA== X-Received: by 2002:a1c:1bd8:: with SMTP id b207mr6261240wmb.139.1602009053444; Tue, 06 Oct 2020 11:30:53 -0700 (PDT) Return-Path: Received: from vanye ([2001:470:1f09:12f0:b26e:bfff:fea9:f1b8]) by smtp.gmail.com with ESMTPSA id r5sm5717930wrp.15.2020.10.06.11.30.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Oct 2020 11:30:52 -0700 (PDT) Date: Tue, 6 Oct 2020 19:30:45 +0100 From: "Leif Lindholm" To: devel@edk2.groups.io Cc: Bob Feng , Liming Gao , Yuwei Chen Subject: expected behaviour of WorkspaceAutoGen.py? Message-ID: <20201006183045.GQ5623@vanye> MIME-Version: 1.0 User-Agent: Mutt/1.10.1 (2018-07-13) Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi BaseTools maintainers, Posting mostly for this to be available in the list archive, but I'm also curious as to whether this is expected behaviour, and would like confirmation of my understanding on the behaviour. We started very lazily creating a new platform port based on edk2-platforms Platform/Qemu/SbsaQemu/, by creating just my own .dsc/.fdf and .dec files. Then we created a single library to override one in SbsaQemu, which used a Pcd from our new .dec - initialized in the .fdf. Now, that library was the only thing with a dependency on our new .dec, and (since it's a library), it is not directly listed in the .fdf. When I run try to build the platform, this triggers the "PCD (%s.%s) used in FDF is not declared in DEC files." error in BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py. Adding a dummy dependency on the .dec to one of the .inf files listed in the .fdf resolved this issue. So, two questions: 1) Have I correctly described the behaviour? 2) Is this intended behaviour? Best Regards, Leif