From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in6.apple.com (mail-out6.apple.com [17.151.62.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 59ADB21A16E37 for ; Tue, 16 May 2017 18:46:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1494985611; h=From:Sender:Reply-To:Subject:Date:Message-id:To:Cc:MIME-version:Content-type: Content-transfer-encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-reply-to:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=eDKMH5LzroJxLiNcCkJShNB1faDO5eWSCSi5t6ixM9s=; b=Y6M3OaXAL7tSZGAvoJyv+YuUTQBDfTLoF7NYGKvTnlFs/XoRMYvFlA6x6Tb3RNsC 1jFTOIgMctn5VW3jsRWfe2mgE/P8vrRXFKhH+hS12db2QQRWo3Ag831gAxBHeEZw lCcaT4b8KbrsUWxr4+DcP2vrLxL3d6t8d9kfZVk7+rQJhL8OVuznDnuHFtwuYXWg XSJ/WC+47uiTRptUGmR3PH6TTVCAPhy+6BS0pQLtKuIhlD/ReOQAh3jB30YH6bbB UaX3BUWjq9d0r4ll3/XexZQffBr62SbwY6XGgKRM0llHxgcecySMk7H7SwCZveW2 kF8DRBxC1NN3JNW40wfKlw==; Received: from relay7.apple.com (relay7.apple.com [17.128.113.101]) (using TLS with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail-in6.apple.com (Apple Secure Mail Relay) with SMTP id 55.B1.26227.B8BAB195; Tue, 16 May 2017 18:46:51 -0700 (PDT) X-AuditID: 11973e15-5b52c9a000006673-fd-591bab8ba77e Received: from nwk-mmpp-sz13.apple.com (nwk-mmpp-sz13.apple.com [17.128.115.216]) by relay7.apple.com (Apple SCV relay) with SMTP id BC.A2.18088.A8BAB195; Tue, 16 May 2017 18:46:50 -0700 (PDT) MIME-version: 1.0 Received: from [17.114.154.119] by nwk-mmpp-sz13.apple.com (Oracle Communications Messaging Server 8.0.1.2.20170210 64bit (built Feb 10 2017)) with ESMTPSA id <0OQ2000BNQA2LQ40@nwk-mmpp-sz13.apple.com>; Tue, 16 May 2017 18:46:50 -0700 (PDT) Sender: afish@apple.com From: Andrew Fish In-reply-to: <4A89E2EF3DFEDB4C8BFDE51014F606A14D72EC72@shsmsx102.ccr.corp.intel.com> Date: Tue, 16 May 2017 18:46:50 -0700 Cc: edk2-devel Message-id: <9C5BAB2F-5013-416E-B8A7-1F606DCCE1CB@apple.com> References: <4A89E2EF3DFEDB4C8BFDE51014F606A14D72EC72@shsmsx102.ccr.corp.intel.com> To: "Gao, Liming" X-Mailer: Apple Mail (2.3273) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrNLMWRmVeSWpSXmKPExsUi2FCYqtu9WjrSYPJzJos9h44yW6y4t4Hd gclj8Z6XTB7ds/+xBDBFcdmkpOZklqUW6dslcGUsWTSNpWAmb0X7+vmMDYyPuboYOTkkBEwk ts69y9rFyMUhJLCGSWLZx9vMMIk1fRuhEocYJa6vfMkIkuAVEJT4MfkeSxcjBwezgLzEwfOy IGFmAS2J749aWSDqvzFK3LyyixUkISwgLvHuzCZmCNtQ4uCkXywgNpuAssSK+R/YQWxOgTCJ JwfOgdWzCKhKbPi5nRliqIbE19Xb2SH22ki0XtnABGILCbQxShzanQFiiwDVPLz3G+poWYlb sy8xgxwhIbCCTeLn7+1sExiFZyG5exbC3bOQ3L2AkXkVo1BuYmaObmaemV5iQUFOql5yfu4m RlBoT7cT3cF4ZpXVIUYBDkYlHt4JXNKRQqyJZcWVuYcYpTlYlMR5p7oChQTSE0tSs1NTC1KL 4otKc1KLDzEycXBKNTBO8K5fk1z3POUQN3dMCavhW9WKB3rMihuF6y6EBqpkxb2sv3Ax0i/o bNctDpl5ufuL+9+VL194d7vh/SlZxy4UPIxVtE7oE6lSYGJ5n8NpI37Let+pNMaPGZcXO7BH PdX59+ukp8lJ+Q79iLeTvrCcEtIzcv304nFA3cTPE8Kvy/+UsmXal6DEUpyRaKjFXFScCADg 5uf5TgIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplkeLIzCtJLcpLzFFi42IRbCi+odu1WjrS4Ppka4s9h44yW6y4t4Hd gclj8Z6XTB7ds/+xBDBFcdmkpOZklqUW6dslcGUsWTSNpWAmb0X7+vmMDYyPuboYOTkkBEwk 1vRtZO1i5OIQEjjEKHF95UtGkASvgKDEj8n3WLoYOTiYBeQlDp6XBQkzC2hJfH/UygJR/41R 4uaVXawgCWEBcYl3ZzYxQ9iGEgcn/WIBsdkElCVWzP/ADmJzCoRJPDlwDqyeRUBVYsPP7cwQ QzUkvq7ezg6x10ai9coGJhBbSKCNUeLQ7gwQWwSo5uG938wQR8tK3Jp9iXkCo8AsJKfOQjh1 FpJTFzAyr2IUKErNSaw010ssKMhJ1UvOz93ECA7FwtQdjI3LrQ4xCnAwKvHwTuCSjhRiTSwr rswFhgUHs5IIr8t8oBBvSmJlVWpRfnxRaU5q8SHGKqD7JzJLiSbnA+MkryTe0MTEwMTY2MzY 2NzEnCrCSuK8dSuANgukJ5akZqemFqQWwSxn4uCUamDcefVIwzaTGon3ZRP8TKKXVdSU7ef9 YTq17lrz45tzr3+PWnz3k9GEivTWlw8cdq2aduGAjes+tcsPu2OdJ97xmHf99dr2fzc0v/C5 5HwXeS4hJe9l+mr5tO8aXBP/LtyWb9xrevB7QErhvmeVP84r79jRNP9Dx6ZDtpqx6xZP+Vm5 yWXpAa+oRiWW4oxEQy3mouJEAJijHwCgAgAA Subject: Re: Can I do this in an INF file? X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 May 2017 01:46:51 -0000 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII > On May 16, 2017, at 6:41 PM, Gao, Liming wrote: > > Andrew: > There is no such usage. INF can specify source files for the different ARCHs, but not specify source files for the different module type. In fact, INF module type is fixed. It can't be changed to other type in build time. If you expect the library to be linked to the different type driver with the different sources, you may create two version INF files to include the different source files. > Liming, Thanks. Yes given how the build system works what I asked is not possible. I ended up doing it the correct way and made an instance of the UefiRuntimeLib to link against. Thanks, Andrew Fish > Thanks > Liming >> -----Original Message----- >> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of >> Andrew Fish >> Sent: Wednesday, May 17, 2017 7:43 AM >> To: edk2-devel >> Subject: [edk2] Can I do this in an INF file? >> >> I'm trying to cross compile a runtime library to work in an Application (for >> testing). I can't seem to restrict files and libs to specific module types? >> >> [Sources.common.UEFI_APPLICATION] >> FakeRuntime.c >> >> >> [LibraryClasses.common.DXE_RUNTIME_DRIVER] >> UefiRuntimeLib >> >> Am I using the wrong syntax? >> >> Thanks, >> >> Andrew Fish >> _______________________________________________ >> edk2-devel mailing list >> edk2-devel@lists.01.org >> https://lists.01.org/mailman/listinfo/edk2-devel > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel