<?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>faabed29 - kbuild: introduce hostprogs-always-y and userprogs-always-y</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/samples/binderfs/Makefile#faabed29</link>
        <description>kbuild: introduce hostprogs-always-y and userprogs-always-yTo build host programs, you need to add the program names to &apos;hostprogs&apos;to use the necessary build rule, but it is not enough to build thembecause there is no dependency.There are two types of host programs: built as the prerequisite ofanother (e.g. gen_crc32table in lib/Makefile), or always built whenKbuild visits the Makefile (e.g. genksyms in scripts/genksyms/Makefile).The latter is typical in Makefiles under scripts/, which contains hostprograms globally used during the kernel build. To build them, you needto add them to both &apos;hostprogs&apos; and &apos;always-y&apos;.This commit adds hostprogs-always-y as a shorthand.The same applies to user programs. net/bpfilter/Makefile buildsbpfilter_umh on demand, hence always-y is unneeded. In contrast,programs under samples/ are added to both &apos;userprogs&apos; and &apos;always-y&apos;so they are always built when Kbuild visits the Makefiles.userprogs-always-y works as a shorthand.Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;Acked-by: Miguel Ojeda &lt;miguel.ojeda.sandonis@gmail.com&gt;

            List of files:
            /linux-6.15/samples/binderfs/Makefile</description>
        <pubDate>Sat, 01 Aug 2020 12:27:18 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;masahiroy@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>fca5e949 - samples: binderfs: really compile this sample and fix build issues</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/samples/binderfs/Makefile#fca5e949</link>
        <description>samples: binderfs: really compile this sample and fix build issuesEven after commit c624adc9cb6e (&quot;samples: fix binderfs sample&quot;), thissample is never compiled.&apos;hostprogs&apos; teaches Kbuild that this is a host program, but not enoughto order to compile it. You must add it to &apos;always-y&apos; to really compileit.Since this sample has never been compiled in upstream, various issuesare left unnoticed.[1] compilers without &lt;linux/android/binderfs.h&gt; are still widely used&lt;linux/android/binderfs.h&gt; is only available since commit c13295ad219d(&quot;binderfs: rename header to binderfs.h&quot;), i.e., Linux 5.0If your compiler is based on UAPI headers older than Linux 5.0, youwill see the following error:  samples/binderfs/binderfs_example.c:16:10: fatal error: linux/android/binderfs.h: No such file or directory   #include &lt;linux/android/binderfs.h&gt;            ^~~~~~~~~~~~~~~~~~~~~~~~~~  compilation terminated.You cannot rely on compilers having such a new header.The common approach is to install UAPI headers of this kernel intousr/include, and then add it to the header search path.I added &apos;depends on HEADERS_INSTALL&apos; in Kconfig, and &apos;-I usr/include&apos;compiler flag in Makefile.[2] compile the sample for target architectureBecause headers_install works for the target architecture, only thenative compiler was able to build sample code that requires&apos;-I usr/include&apos;.Commit 7f3a59db274c (&quot;kbuild: add infrastructure to build userspaceprograms&quot;) added the new syntax &apos;userprogs&apos; to compile user-spaceprograms for the target architecture.Use it, and then &apos;ifndef CROSS_COMPILE&apos; will go away.I added &apos;depends on CC_CAN_LINK&apos; because $(CC) is not necessarilycapable of linking user-space programs.[3] use subdir-y to descend into samples/binderfsSince this directory does not contain any kernel-space code, it has nopoint in generating built-in.a or modules.order.Replace obj-$(CONFIG_...) with subdir-$(CONFIG_...).[4] -Wunused-variable warningIf I compile this, I see the following warning.  samples/binderfs/binderfs_example.c: In function &apos;main&apos;:  samples/binderfs/binderfs_example.c:21:9: warning: unused variable &apos;len&apos; [-Wunused-variable]     21 |  size_t len;        |         ^~~I removed the unused &apos;len&apos;.[5] CONFIG_ANDROID_BINDERFS is not requiredSince this is a user-space standalone program, it is independent ofthe kernel configuration.Remove &apos;depends on ANDROID_BINDERFS&apos;.Fixes: 9762dc1432e1 (&quot;samples: add binderfs sample program&quot;)Fixes: c624adc9cb6e (&quot;samples: fix binderfs sample&quot;)Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;Acked-by: Christian Brauner &lt;christian.brauner@ubuntu.com&gt;

            List of files:
            /linux-6.15/samples/binderfs/Makefile</description>
        <pubDate>Sun, 07 Jun 2020 03:20:53 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;masahiroy@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>c624adc9 - samples: fix binderfs sample</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/samples/binderfs/Makefile#c624adc9</link>
        <description>samples: fix binderfs sampleA routine check for misspelled Kconfig symbols showed on instancefrom last year, the correct symbol name is CONFIG_ANDROID_BINDERFS,not CONFIG_CONFIG_ANDROID_BINDERFS, so the extra prefix mustbe removed in the Kconfig file to allow enabling the sample.As the actual sample fails to build as a kernel module, change theMakefile enough to get to build as a hostprog instead.Fixes: 9762dc1432e1 (&quot;samples: add binderfs sample program&quot;)Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;Acked-by: Christian Brauner &lt;christian.brauner@ubuntu.com&gt;Link: https://lore.kernel.org/r/20200428212555.2806258-1-arnd@arndb.deSigned-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;

            List of files:
            /linux-6.15/samples/binderfs/Makefile</description>
        <pubDate>Tue, 28 Apr 2020 21:25:33 +0000</pubDate>
        <dc:creator>Arnd Bergmann &lt;arnd@arndb.de&gt;</dc:creator>
    </item>
<item>
        <title>ec8f24b7 - treewide: Add SPDX license identifier - Makefile/Kconfig</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/samples/binderfs/Makefile#ec8f24b7</link>
        <description>treewide: Add SPDX license identifier - Makefile/KconfigAdd SPDX license identifiers to all Make/Kconfig files which: - Have no license information of any formThese files fall under the project license, GPL v2 only. The resulting SPDXlicense identifier is:  GPL-2.0-onlySigned-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

            List of files:
            /linux-6.15/samples/binderfs/Makefile</description>
        <pubDate>Sun, 19 May 2019 12:07:45 +0000</pubDate>
        <dc:creator>Thomas Gleixner &lt;tglx@linutronix.de&gt;</dc:creator>
    </item>
<item>
        <title>9762dc14 - samples: add binderfs sample program</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/samples/binderfs/Makefile#9762dc14</link>
        <description>samples: add binderfs sample programThis adds a simple sample program mounting binderfs and adding, thenremoving a binder device.  Hopefully, it will be helpful to users who wantto know how binderfs is supposed to be used.Signed-off-by: Christian Brauner &lt;christian.brauner@ubuntu.com&gt;Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;

            List of files:
            /linux-6.15/samples/binderfs/Makefile</description>
        <pubDate>Fri, 11 Jan 2019 13:41:00 +0000</pubDate>
        <dc:creator>Christian Brauner &lt;christian@brauner.io&gt;</dc:creator>
    </item>
</channel>
</rss>
