<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in Makefile</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>cc937dad - selftests: centralize -D_GNU_SOURCE= to CFLAGS in lib.mk</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/testing/selftests/sgx/Makefile#cc937dad</link>
        <description>selftests: centralize -D_GNU_SOURCE= to CFLAGS in lib.mkCentralize the _GNU_SOURCE definition to CFLAGS in lib.mk.  Removeredundant defines from Makefiles that import lib.mk.  Convert any usage of&quot;#define _GNU_SOURCE 1&quot; to &quot;#define _GNU_SOURCE&quot;.This uses the form &quot;-D_GNU_SOURCE=&quot;, which is equivalent to&quot;#define _GNU_SOURCE&quot;.Otherwise using &quot;-D_GNU_SOURCE&quot; is equivalent to &quot;-D_GNU_SOURCE=1&quot; and&quot;#define _GNU_SOURCE 1&quot;, which is less commonly seen in source code andwould require many changes in selftests to avoid redefinition warnings.Link: https://lkml.kernel.org/r/20240625223454.1586259-2-edliaw@google.comSigned-off-by: Edward Liaw &lt;edliaw@google.com&gt;Suggested-by: John Hubbard &lt;jhubbard@nvidia.com&gt;Acked-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;Reviewed-by: Muhammad Usama Anjum &lt;usama.anjum@collabora.com&gt;Cc: Albert Ou &lt;aou@eecs.berkeley.edu&gt;Cc: Andr&#233; Almeida &lt;andrealmeid@igalia.com&gt;Cc: Darren Hart &lt;dvhart@infradead.org&gt;Cc: Dave Hansen &lt;dave.hansen@linux.intel.com&gt;Cc: Davidlohr Bueso &lt;dave@stgolabs.net&gt;Cc: David S. Miller &lt;davem@davemloft.net&gt;Cc: Eric Dumazet &lt;edumazet@google.com&gt;Cc: Eric W. Biederman &lt;ebiederm@xmission.com&gt;Cc: Fenghua Yu &lt;fenghua.yu@intel.com&gt;Cc: Ingo Molnar &lt;mingo@redhat.com&gt;Cc: Jakub Kicinski &lt;kuba@kernel.org&gt;Cc: Jarkko Sakkinen &lt;jarkko@kernel.org&gt;Cc: Jason Gunthorpe &lt;jgg@ziepe.ca&gt;Cc: Kees Cook &lt;kees@kernel.org&gt;Cc: Kevin Tian &lt;kevin.tian@intel.com&gt;Cc: Palmer Dabbelt &lt;palmer@dabbelt.com&gt;Cc: Paolo Abeni &lt;pabeni@redhat.com&gt;Cc: Paolo Bonzini &lt;pbonzini@redhat.com&gt;Cc: Paul Walmsley &lt;paul.walmsley@sifive.com&gt;Cc: Peter Zijlstra &lt;peterz@infradead.org&gt;Cc: Reinette Chatre &lt;reinette.chatre@intel.com&gt;Cc: Sean Christopherson &lt;seanjc@google.com&gt;Cc: Thomas Gleixner &lt;tglx@linutronix.de&gt;Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;

            List of files:
            /linux-6.15/tools/testing/selftests/sgx/Makefile</description>
        <pubDate>Tue, 25 Jun 2024 22:34:45 +0000</pubDate>
        <dc:creator>Edward Liaw &lt;edliaw@google.com&gt;</dc:creator>
    </item>
<item>
        <title>3da16402 - Revert &quot;selftests/sgx: Include KHDR_INCLUDES in Makefile&quot;</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/testing/selftests/sgx/Makefile#3da16402</link>
        <description>Revert &quot;selftests/sgx: Include KHDR_INCLUDES in Makefile&quot;This reverts commit 2c3b8f8f37c6c0c926d584cf4158db95e62b960c.The framework change to add D_GNU_SOURCE to KHDR_INCLUDESto Makefile, lib.mk, and kselftest_harness.h is revertedas it is causing build failures and warnings.Revert this change as this change depends on the frameworkchange.Reported-by: Mark Brown &lt;broonie@kernel.org&gt;Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;

            List of files:
            /linux-6.15/tools/testing/selftests/sgx/Makefile</description>
        <pubDate>Fri, 17 May 2024 02:58:26 +0000</pubDate>
        <dc:creator>Shuah Khan &lt;skhan@linuxfoundation.org&gt;</dc:creator>
    </item>
<item>
        <title>2c3b8f8f - selftests/sgx: Include KHDR_INCLUDES in Makefile</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/testing/selftests/sgx/Makefile#2c3b8f8f</link>
        <description>selftests/sgx: Include KHDR_INCLUDES in MakefileAdd KHDR_INCLUDES to the CFLAGS to pull in the kselftest harnessdependencies (-D_GNU_SOURCE).Also, remove redefinitions of _GNU_SOURCE in the source code.Fixes: 809216233555 (&quot;selftests/harness: remove use of LINE_MAX&quot;)Reported-by: kernel test robot &lt;oliver.sang@intel.com&gt;Closes: https://lore.kernel.org/oe-lkp/202404301040.3bea5782-oliver.sang@intel.comSigned-off-by: Edward Liaw &lt;edliaw@google.com&gt;Reviewed-by: Muhammad Usama Anjum &lt;usama.anjum@collabora.com&gt;Acked-by: Dave Hansen &lt;dave.hansen@linux.intel.com&gt;Reviewed-by: Jarkko Sakkinen &lt;jarkko@kernel.org&gt;Tested-by: Jarkko Sakkinen &lt;jarkko@kernel.org&gt;Reviewed-by: John Hubbard &lt;jhubbard@nvidia.com&gt;Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;

            List of files:
            /linux-6.15/tools/testing/selftests/sgx/Makefile</description>
        <pubDate>Tue, 07 May 2024 21:38:27 +0000</pubDate>
        <dc:creator>Edward Liaw &lt;edliaw@google.com&gt;</dc:creator>
    </item>
<item>
        <title>981cf568 - selftests/sgx: Skip non X86_64 platform</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/testing/selftests/sgx/Makefile#981cf568</link>
        <description>selftests/sgx: Skip non X86_64 platformWhen building whole selftests on arm64, rsync gives an erorr about sgx:rsync: [sender] link_stat &quot;/root/linux-next/tools/testing/selftests/sgx/test_encl.elf&quot; failed: No such file or directory (2)rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1327) [sender=3.2.5]The root casue is sgx only used on X86_64, and shall be skipped on otherplatforms.Fix this by moving TEST_CUSTOM_PROGS and TEST_FILES inside the if check,then the build result will be &quot;Skipping non-existent dir: sgx&quot;.Fixes: 2adcba79e69d (&quot;selftests/x86: Add a selftest for SGX&quot;)Signed-off-by: Zhao Mengmeng &lt;zhaomengmeng@kylinos.cn&gt;Signed-off-by: Dave Hansen &lt;dave.hansen@linux.intel.com&gt;Reviewed-by: Jarkko Sakkinen &lt;jarkko@kernel.org&gt;Link: https://lore.kernel.org/all/20231206025605.3965302-1-zhaomzhao%40126.com

            List of files:
            /linux-6.15/tools/testing/selftests/sgx/Makefile</description>
        <pubDate>Wed, 06 Dec 2023 02:56:05 +0000</pubDate>
        <dc:creator>Zhao Mengmeng &lt;zhaomengmeng@kylinos.cn&gt;</dc:creator>
    </item>
<item>
        <title>f7884e73 - selftests/sgx: Produce static-pie executable for test enclave</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/testing/selftests/sgx/Makefile#f7884e73</link>
        <description>selftests/sgx: Produce static-pie executable for test enclaveThe current combination of -static and -fPIC creates a static executablewith position-dependent addresses for global variables. Use -static-pieand -fPIE to create a proper static position independent executable thatcan be loaded at any address without a dynamic linker.When building the original &quot;lea (encl_stack)(%rbx), %rax&quot; assembly codewith -static-pie -fPIE, the linker complains about a relocation it cannotresolve:/usr/local/bin/ld: /tmp/cchIWyfG.o: relocation R_X86_64_32S against`.data&apos; can not be used when making a PIE object; recompile with -fPIEcollect2: error: ld returned 1 exit statusThus, since only RIP-relative addressing is legit for local symbols, use&quot;encl_stack(%rip)&quot; and declare an explicit &quot;__encl_base&quot; symbol at thestart of the linker script to be able to calculate the stack addressrelative to the current TCS in the enclave assembly entry code.Signed-off-by: Jo Van Bulck &lt;jo.vanbulck@cs.kuleuven.be&gt;Signed-off-by: Dave Hansen &lt;dave.hansen@linux.intel.com&gt;Reviewed-by: Jarkko Sakkinen &lt;jarkko@kernel.org&gt;Acked-by: Kai Huang &lt;kai.huang@intel.com&gt;Link: https://lore.kernel.org/all/f9c24d89-ed72-7d9e-c650-050d722c6b04@cs.kuleuven.be/Link: https://lore.kernel.org/all/20231005153854.25566-8-jo.vanbulck%40cs.kuleuven.be

            List of files:
            /linux-6.15/tools/testing/selftests/sgx/Makefile</description>
        <pubDate>Thu, 05 Oct 2023 15:38:48 +0000</pubDate>
        <dc:creator>Jo Van Bulck &lt;jo.vanbulck@cs.kuleuven.be&gt;</dc:creator>
    </item>
<item>
        <title>304b259e - selftests/sgx: Specify freestanding environment for enclave compilation</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/testing/selftests/sgx/Makefile#304b259e</link>
        <description>selftests/sgx: Specify freestanding environment for enclave compilationUse -ffreestanding to assert the enclave compilation targets afreestanding environment (i.e., without &quot;main&quot; or standard libraries).This fixes clang reporting &quot;undefined reference to `memset&apos;&quot; aftererroneously optimizing away the provided memset/memcpy implementations.Still need to instruct the linker from using standard system startupfunctions, but drop -nostartfiles as it is implied by -nostdlib.Signed-off-by: Jo Van Bulck &lt;jo.vanbulck@cs.kuleuven.be&gt;Signed-off-by: Dave Hansen &lt;dave.hansen@linux.intel.com&gt;Reviewed-by: Jarkko Sakkinen &lt;jarkko@kernel.org&gt;Acked-by: Kai Huang &lt;kai.huang@intel.com&gt;Link: https://lore.kernel.org/all/20231005153854.25566-6-jo.vanbulck%40cs.kuleuven.be

            List of files:
            /linux-6.15/tools/testing/selftests/sgx/Makefile</description>
        <pubDate>Thu, 05 Oct 2023 15:38:46 +0000</pubDate>
        <dc:creator>Jo Van Bulck &lt;jo.vanbulck@cs.kuleuven.be&gt;</dc:creator>
    </item>
<item>
        <title>f7946465 - selftests/sgx: Separate linker options</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/testing/selftests/sgx/Makefile#f7946465</link>
        <description>selftests/sgx: Separate linker optionsFixes &quot;&apos;linker&apos; input unused [-Wunused-command-line-argument]&quot; errors whencompiling with clang.Signed-off-by: Jo Van Bulck &lt;jo.vanbulck@cs.kuleuven.be&gt;Signed-off-by: Dave Hansen &lt;dave.hansen@linux.intel.com&gt;Reviewed-by: Jarkko Sakkinen &lt;jarkko@kernel.org&gt;Link: https://lore.kernel.org/all/20231005153854.25566-5-jo.vanbulck%40cs.kuleuven.be

            List of files:
            /linux-6.15/tools/testing/selftests/sgx/Makefile</description>
        <pubDate>Thu, 05 Oct 2023 15:38:45 +0000</pubDate>
        <dc:creator>Jo Van Bulck &lt;jo.vanbulck@cs.kuleuven.be&gt;</dc:creator>
    </item>
<item>
        <title>4b79f769 - selftests/sgx: Add &quot;test_encl.elf&quot; to TEST_FILES</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/testing/selftests/sgx/Makefile#4b79f769</link>
        <description>selftests/sgx: Add &quot;test_encl.elf&quot; to TEST_FILESThe &quot;test_encl.elf&quot; file used by test_sgx is not installed inINSTALL_PATH. Attempting to execute test_sgx causes false negative:&quot;enclave executable open(): No such file or directorymain.c:188:unclobbered_vdso:Failed to load the test enclave.&quot;Add &quot;test_encl.elf&quot; to TEST_FILES so that it will be installed.Fixes: 2adcba79e69d (&quot;selftests/x86: Add a selftest for SGX&quot;)Signed-off-by: Yi Lai &lt;yi1.lai@intel.com&gt;Reviewed-by: Jarkko Sakkinen &lt;jarkko@kernel.org&gt;Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;

            List of files:
            /linux-6.15/tools/testing/selftests/sgx/Makefile</description>
        <pubDate>Fri, 21 Apr 2023 03:31:23 +0000</pubDate>
        <dc:creator>Yi Lai &lt;yi1.lai@intel.com&gt;</dc:creator>
    </item>
<item>
        <title>6170abb2 - selftests/sgx: Treat CC as one argument</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/testing/selftests/sgx/Makefile#6170abb2</link>
        <description>selftests/sgx: Treat CC as one argumentCC can have multiple sub-strings like &quot;ccache gcc&quot;. For check_cc.sh,CC needs to be treated like one argument. Put double quotes around it tomake CC one string and hence one argument.Fixes: 2adcba79e69d (&quot;selftests/x86: Add a selftest for SGX&quot;)Reported-by: &quot;kernelci.org bot&quot; &lt;bot@kernelci.org&gt;Signed-off-by: Muhammad Usama Anjum &lt;usama.anjum@collabora.com&gt;Signed-off-by: Dave Hansen &lt;dave.hansen@linux.intel.com&gt;Link: https://lkml.kernel.org/r/20220214184109.3739179-3-usama.anjum@collabora.com

            List of files:
            /linux-6.15/tools/testing/selftests/sgx/Makefile</description>
        <pubDate>Mon, 14 Feb 2022 18:41:09 +0000</pubDate>
        <dc:creator>Muhammad Usama Anjum &lt;usama.anjum@collabora.com&gt;</dc:creator>
    </item>
<item>
        <title>5064343f - selftests/sgx: Fix a benign linker warning</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/testing/selftests/sgx/Makefile#5064343f</link>
        <description>selftests/sgx: Fix a benign linker warningThe enclave binary (test_encl.elf) is built with only three sections (tcs,text, and data) as controlled by its custom linker script.If gcc is built with &quot;--enable-linker-build-id&quot; (this appears to be acommon configuration even if it is by default off) then gccwill pass &quot;--build-id&quot; to the linker that will prompt it (the linker) towrite unique bits identifying the linked file to a &quot;.note.gnu.build-id&quot;section.The section &quot;.note.gnu.build-id&quot; does not exist in the test enclaveresulting in the following warning emitted by the linker:/usr/bin/ld: warning: .note.gnu.build-id section discarded, --build-idignoredThe test enclave does not use the build id within the binary so fix thewarning by passing a build id of &quot;none&quot; to the linker that will disable thesetting from any earlier &quot;--build-id&quot; options and thus disable the attemptto write the build id to a &quot;.note.gnu.build-id&quot; section that does notexist.Link: https://lore.kernel.org/linux-sgx/20191017030340.18301-2-sean.j.christopherson@intel.com/Suggested-by: Cedric Xing &lt;cedric.xing@intel.com&gt;Signed-off-by: Sean Christopherson &lt;sean.j.christopherson@intel.com&gt;Signed-off-by: Reinette Chatre &lt;reinette.chatre@intel.com&gt;Signed-off-by: Dave Hansen &lt;dave.hansen@linux.intel.com&gt;Reviewed-by: Jarkko Sakkinen &lt;jarkko@kernel.org&gt;Acked-by: Dave Hansen &lt;dave.hansen@linux.intel.com&gt;Link: https://lkml.kernel.org/r/ca0f8a81fc1e78af9bdbc6a88e0f9c37d82e53f2.1636997631.git.reinette.chatre@intel.com

            List of files:
            /linux-6.15/tools/testing/selftests/sgx/Makefile</description>
        <pubDate>Mon, 15 Nov 2021 18:35:14 +0000</pubDate>
        <dc:creator>Sean Christopherson &lt;sean.j.christopherson@intel.com&gt;</dc:creator>
    </item>
<item>
        <title>0eaa8d15 - selftests/sgx: Use a statically generated 3072-bit RSA key</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/testing/selftests/sgx/Makefile#0eaa8d15</link>
        <description>selftests/sgx: Use a statically generated 3072-bit RSA keyUse a statically generated key for signing the enclave, becausegenerating keys on the fly can eat the kernel entropy pool. Anothergood reason for doing this is predictable builds. The RSA has beenarbitrarily selected. It&apos;s contents do not matter.This also makes the selftest execute a lot quicker instead of the delaythat it had before (because of slow key generation). [ bp: Disambiguate &quot;static key&quot; which means something else in the   kernel, fix typos. ]Signed-off-by: Jarkko Sakkinen &lt;jarkko@kernel.org&gt;Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;Cc: linux-kselftest@vger.kernel.orgLink: https://lkml.kernel.org/r/20201118170640.39629-1-jarkko@kernel.org

            List of files:
            /linux-6.15/tools/testing/selftests/sgx/Makefile</description>
        <pubDate>Wed, 18 Nov 2020 17:06:40 +0000</pubDate>
        <dc:creator>Jarkko Sakkinen &lt;jarkko@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>2adcba79 - selftests/x86: Add a selftest for SGX</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/testing/selftests/sgx/Makefile#2adcba79</link>
        <description>selftests/x86: Add a selftest for SGXAdd a selftest for SGX. It is a trivial test where a simple enclavecopies one 64-bit word of memory between two memory locations,but ensures that all SGX hardware and software infrastructure isfunctioning.Signed-off-by: Jarkko Sakkinen &lt;jarkko@kernel.org&gt;Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;Acked-by: Jethro Beekman &lt;jethro@fortanix.com&gt;Cc: linux-kselftest@vger.kernel.orgLink: https://lkml.kernel.org/r/20201112220135.165028-21-jarkko@kernel.org

            List of files:
            /linux-6.15/tools/testing/selftests/sgx/Makefile</description>
        <pubDate>Thu, 12 Nov 2020 22:01:31 +0000</pubDate>
        <dc:creator>Jarkko Sakkinen &lt;jarkko@kernel.org&gt;</dc:creator>
    </item>
</channel>
</rss>
