[PATCH] Makefile: Remove the product of pin_init cleanly in mrporper

18 views
Skip to first unread message

chenmiao

unread,
Oct 29, 2025, 10:26:33 PM (14 days ago) Oct 29
to chao...@openatom.club, luo...@openatom.club, dz...@openatom.club, plu...@openatom.club, hust-os-ker...@googlegroups.com
When I enabled Rust compilation, I wanted to clean up its output, so I
used make cleanand make mrproper. However, I was still able to find that
libpin_init_internal.so in the rust directory was not deleted, while
all other corresponding outputs were cleared.

If this is an intentional design, I will drop this commit.

Signed-off-by: chenmiao <chen...@openatom.club>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index b34a1f4c03967..f43a70413a6aa 100644
--- a/Makefile
+++ b/Makefile
@@ -1590,7 +1590,7 @@ MRPROPER_FILES += include/config include/generated \
certs/x509.genkey \
vmlinux-gdb.py \
rpmbuild \
- rust/libmacros.so rust/libmacros.dylib
+ rust/libmacros.so rust/libmacros.dylib rust/libpin_init_internal.so

# clean - Delete most, but leave enough to build external modules
#
--
2.43.0

Dongliang Mu

unread,
Oct 29, 2025, 11:57:16 PM (14 days ago) Oct 29
to chenmiao, chao...@openatom.club, luo...@openatom.club, dz...@openatom.club, plu...@openatom.club, hust-os-ker...@googlegroups.com

On 10/30/25 10:26 AM, chenmiao wrote:
> When I enabled Rust compilation, I wanted to clean up its output, so I
> used make cleanand make mrproper. However, I was still able to find that
> libpin_init_internal.so in the rust directory was not deleted, while
> all other corresponding outputs were cleared.

make clean and

missing one space

> If this is an intentional design, I will drop this commit.
>
> Signed-off-by: chenmiao <chen...@openatom.club>
> ---
> Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Makefile b/Makefile
> index b34a1f4c03967..f43a70413a6aa 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1590,7 +1590,7 @@ MRPROPER_FILES += include/config include/generated \
> certs/x509.genkey \
> vmlinux-gdb.py \
> rpmbuild \
> - rust/libmacros.so rust/libmacros.dylib
> + rust/libmacros.so rust/libmacros.dylib rust/libpin_init_internal.so

I am not quite familar with this library. Rust for linux forgets to
clean this library?

Dongliang Mu

Chen Miao

unread,
Oct 30, 2025, 12:00:10 AM (14 days ago) Oct 30
to Dongliang Mu, chao...@openatom.club, luo...@openatom.club, dz...@openatom.club, plu...@openatom.club, hust-os-ker...@googlegroups.com
On 10/30/2025 11:56 AM, Dongliang Mu wrote:
>
> On 10/30/25 10:26 AM, chenmiao wrote:
>> When I enabled Rust compilation, I wanted to clean up its output, so I
>> used make cleanand make mrproper. However, I was still able to find that
>> libpin_init_internal.so in the rust directory was not deleted, while
>> all other corresponding outputs were cleared.
>
> make clean and
>
> missing one space
Fixed now.
>
>> If this is an intentional design, I will drop this commit.
>>
>> Signed-off-by: chenmiao <chen...@openatom.club>
>> ---
>>   Makefile | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/Makefile b/Makefile
>> index b34a1f4c03967..f43a70413a6aa 100644
>> --- a/Makefile
>> +++ b/Makefile
>> @@ -1590,7 +1590,7 @@ MRPROPER_FILES += include/config
>> include/generated          \
>>             certs/x509.genkey \
>>             vmlinux-gdb.py \
>>             rpmbuild \
>> -          rust/libmacros.so rust/libmacros.dylib
>> +          rust/libmacros.so rust/libmacros.dylib rust/libpin_init_internal.so
>
> I am not quite familar with this library. Rust for linux forgets to clean
> this library?

I think just forget clean the one library, the other all be cleaned.

Chen Miao

chenmiao

unread,
Oct 30, 2025, 4:57:23 AM (13 days ago) Oct 30
to chao...@openatom.club, luo...@openatom.club, dz...@openatom.club, plu...@openatom.club, hust-os-ker...@googlegroups.com
When I enabled Rust compilation, I wanted to clean up its output, so I
used make clean and make mrproper. However, I was still able to find that
libpin_init_internal.so in the rust directory was not deleted, while
all other corresponding outputs were cleared.

If this is an intentional design, I will drop this commit.

Signed-off-by: chenmiao <chen...@openatom.club>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index b34a1f4c03967..f43a70413a6aa 100644
--- a/Makefile
+++ b/Makefile
@@ -1590,7 +1590,7 @@ MRPROPER_FILES += include/config include/generated \
certs/x509.genkey \
vmlinux-gdb.py \
rpmbuild \
- rust/libmacros.so rust/libmacros.dylib
+ rust/libmacros.so rust/libmacros.dylib rust/libpin_init_internal.so

# clean - Delete most, but leave enough to build external modules
#
--
2.43.0

Dongliang Mu

unread,
Oct 30, 2025, 4:57:56 AM (13 days ago) Oct 30
to chenmiao, chao...@openatom.club, luo...@openatom.club, plu...@openatom.club, hust-os-ker...@googlegroups.com
On 10/30/25 4:57 PM, chenmiao wrote:
> When I enabled Rust compilation, I wanted to clean up its output, so I
> used make clean and make mrproper. However, I was still able to find that
> libpin_init_internal.so in the rust directory was not deleted, while
> all other corresponding outputs were cleared.
>
> If this is an intentional design, I will drop this commit.
>
> Signed-off-by: chenmiao <chen...@openatom.club>
Reviewed-by: Dongliang Mu <dz...@hust.edu.cn>

chenmiao

unread,
Oct 30, 2025, 5:07:55 AM (13 days ago) Oct 30
to los...@kernel.org, nat...@kernel.org, hust-os-ker...@googlegroups.com, Dongliang Mu, Nicolas Schier, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, Masahiro Yamada, Thomas Weißschuh, Tamir Duberstein, open list, open list:RUST:Keyword:b(?i:rust)b
When I enabled Rust compilation, I wanted to clean up its output, so I
used make clean and make mrproper. However, I was still able to find that
libpin_init_internal.so in the rust directory was not deleted, while
all other corresponding outputs were cleared.

If this is an intentional design, I will drop this commit.

Reviewed-by: Dongliang Mu <dz...@hust.edu.cn>
Signed-off-by: chenmiao <chen...@openatom.club>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index b34a1f4c03967..f43a70413a6aa 100644
--- a/Makefile
+++ b/Makefile
@@ -1590,7 +1590,7 @@ MRPROPER_FILES += include/config include/generated \
certs/x509.genkey \
vmlinux-gdb.py \
rpmbuild \
- rust/libmacros.so rust/libmacros.dylib
+ rust/libmacros.so rust/libmacros.dylib rust/libpin_init_internal.so

# clean - Delete most, but leave enough to build external modules
#
--
2.43.0

Miguel Ojeda

unread,
Oct 30, 2025, 1:41:47 PM (13 days ago) Oct 30
to chenmiao, Tamir Duberstein, Daniel Gomez, los...@kernel.org, nat...@kernel.org, hust-os-ker...@googlegroups.com, Dongliang Mu, Nicolas Schier, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, Masahiro Yamada, Thomas Weißschuh, open list, open list:RUST:Keyword:b(?i:rust)b
On Thu, Oct 30, 2025 at 10:08 AM chenmiao <chen...@openatom.club> wrote:
>
> - rust/libmacros.so rust/libmacros.dylib
> + rust/libmacros.so rust/libmacros.dylib rust/libpin_init_internal.so

I think we will need the `.dylib` too, given the other one is there
(for the macOS builds some people do -- Cc'ing Daniel and Tamir). Or
did you avoid it for some reason?

Thanks!

Cheers,
Miguel

Chen Miao

unread,
Oct 30, 2025, 9:54:51 PM (13 days ago) Oct 30
to Miguel Ojeda, Tamir Duberstein, Daniel Gomez, los...@kernel.org, nat...@kernel.org, hust-os-ker...@googlegroups.com, Dongliang Mu, Nicolas Schier, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, Masahiro Yamada, Thomas Weißschuh, open list, open list:RUST:Keyword:b(?i:rust)b
Hum, in fact I just seen the `.so` so I ignore the `.dylib`. I think should
add the `.dylib`, I'll make revision later.

Regard,

Chen Miao

>
> Thanks!
>
> Cheers,
> Miguel

chenmiao

unread,
Oct 30, 2025, 9:56:36 PM (13 days ago) Oct 30
to chao...@openatom.club, luo...@openatom.club, dz...@openatom.club, plu...@openatom.club, hust-os-ker...@googlegroups.com
When I enabled Rust compilation, I wanted to clean up its output, so I
used make clean and make mrproper. However, I was still able to find that
libpin_init_internal.so in the rust directory was not deleted, while
all other corresponding outputs were cleared.

Signed-off-by: chenmiao <chen...@openatom.club>
---
Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index b34a1f4c03967..29f8956f27c1a 100644
--- a/Makefile
+++ b/Makefile
@@ -1590,7 +1590,8 @@ MRPROPER_FILES += include/config include/generated \
certs/x509.genkey \
vmlinux-gdb.py \
rpmbuild \
- rust/libmacros.so rust/libmacros.dylib
+ rust/libmacros.so rust/libmacros.dylib \
+ rust/libpin_init_internal.so rust/libpin_init_internal.dylib

Dongliang Mu

unread,
Oct 30, 2025, 9:57:52 PM (13 days ago) Oct 30
to chenmiao, chao...@openatom.club, luo...@openatom.club, plu...@openatom.club, hust-os-ker...@googlegroups.com
Align with the above line

chenmiao

unread,
Oct 30, 2025, 10:06:34 PM (13 days ago) Oct 30
to chao...@openatom.club, luo...@openatom.club, dz...@openatom.club, plu...@openatom.club, hust-os-ker...@googlegroups.com
When I enabled Rust compilation, I wanted to clean up its output, so I
used make clean and make mrproper. However, I was still able to find that
libpin_init_internal.so in the rust directory was not deleted, while
all other corresponding outputs were cleared.

Signed-off-by: chenmiao <chen...@openatom.club>
---
Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index b34a1f4c03967..b38b2895e1e4a 100644
--- a/Makefile
+++ b/Makefile
@@ -1590,7 +1590,8 @@ MRPROPER_FILES += include/config include/generated \
certs/x509.genkey \
vmlinux-gdb.py \
rpmbuild \
- rust/libmacros.so rust/libmacros.dylib
+ rust/libmacros.so rust/libmacros.dylib \
+ rust/libpin_init_internal.so rust/libpin_init_internal.dylib

# clean - Delete most, but leave enough to build external modules
#
--
2.43.0

chenmiao

unread,
Oct 30, 2025, 10:32:54 PM (13 days ago) Oct 30
to miguel.oje...@gmail.com, tam...@gmail.com, da.g...@samsung.com, hust-os-ker...@googlegroups.com, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org
When I enabled Rust compilation, I wanted to clean up its output, so I
used make clean and make mrproper. However, I was still able to find that
libpin_init_internal.so in the rust directory was not deleted, while
all other corresponding outputs were cleared.

Dongliang Mu <dz...@hust.edu.cn>
Signed-off-by: chenmiao <chen...@openatom.club>
---
Changes in V2:
- Add the `.dylib` to mrproper files.

Chen Miao

unread,
Nov 3, 2025, 8:51:14 PM (9 days ago) Nov 3
to miguel.oje...@gmail.com, tam...@gmail.com, da.g...@samsung.com, hust-os-ker...@googlegroups.com, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org
PING.
Reply all
Reply to author
Forward
0 new messages