[PATCH] kbuild: strip the last slash in KBUILD_EXTMOD

2017-03-12 Thread Wei Yang
Current kbuild will build the target again if we run "make M=dir" and "make M=dir/" by turns, since if_changed will see the prerequisite is changed. The behavior may confuse the user a little, since actually we are building the same target and no difference. According to current implementation in

[PATCH] kbuild: strip the last slash in KBUILD_EXTMOD

2017-03-12 Thread Wei Yang
Current kbuild will build the target again if we run "make M=dir" and "make M=dir/" by turns, since if_changed will see the prerequisite is changed. The behavior may confuse the user a little, since actually we are building the same target and no difference. According to current implementation in

Re: [PATCH] kbuild: strip the last slash in KBUILD_EXTMOD

2017-03-12 Thread Wei Yang
On Sat, Mar 11, 2017 at 10:34:50PM +0900, Masahiro Yamada wrote: >Hi Wei, > > >2017-02-23 0:08 GMT+09:00 Wei Yang : >> Current kbuild will build the target again if we run "make M=dir" and "make >> M=dir/" by turns, since if_changed will see the prerequisite is changed.

Re: [PATCH] kbuild: strip the last slash in KBUILD_EXTMOD

2017-03-12 Thread Wei Yang
On Sat, Mar 11, 2017 at 10:34:50PM +0900, Masahiro Yamada wrote: >Hi Wei, > > >2017-02-23 0:08 GMT+09:00 Wei Yang : >> Current kbuild will build the target again if we run "make M=dir" and "make >> M=dir/" by turns, since if_changed will see the prerequisite is changed. >> The behavior may confuse

Re: [PATCH] kbuild: strip the last slash in KBUILD_EXTMOD

2017-03-11 Thread Masahiro Yamada
Hi Wei, 2017-02-23 0:08 GMT+09:00 Wei Yang : > Current kbuild will build the target again if we run "make M=dir" and "make > M=dir/" by turns, since if_changed will see the prerequisite is changed. > The behavior may confuse the user a little, since actually we are

Re: [PATCH] kbuild: strip the last slash in KBUILD_EXTMOD

2017-03-11 Thread Masahiro Yamada
Hi Wei, 2017-02-23 0:08 GMT+09:00 Wei Yang : > Current kbuild will build the target again if we run "make M=dir" and "make > M=dir/" by turns, since if_changed will see the prerequisite is changed. > The behavior may confuse the user a little, since actually we are building > the same target and

[PATCH] kbuild: strip the last slash in KBUILD_EXTMOD

2017-02-22 Thread Wei Yang
Current kbuild will build the target again if we run "make M=dir" and "make M=dir/" by turns, since if_changed will see the prerequisite is changed. The behavior may confuse the user a little, since actually we are building the same target and no difference. According to current implementation in

[PATCH] kbuild: strip the last slash in KBUILD_EXTMOD

2017-02-22 Thread Wei Yang
Current kbuild will build the target again if we run "make M=dir" and "make M=dir/" by turns, since if_changed will see the prerequisite is changed. The behavior may confuse the user a little, since actually we are building the same target and no difference. According to current implementation in