diff mbox

[hwc] Android: add CleanSpec.mk

Message ID 20171103044508.25104-1-cwhuang@linux.org.tw (mailing list archive)
State New, archived
Headers show

Commit Message

Chih-Wei Huang Nov. 3, 2017, 4:45 a.m. UTC
The file contains rules that are executed on incremental builds.
Since commit 4f7dc9b6 the library was moved to /vendor so
the old file must be removed.

Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
---
 CleanSpec.mk | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 CleanSpec.mk

Comments

Rob Herring (Arm) Nov. 3, 2017, 12:35 p.m. UTC | #1
On Thu, Nov 2, 2017 at 11:45 PM, Chih-Wei Huang <cwhuang@android-x86.org> wrote:
> The file contains rules that are executed on incremental builds.
> Since commit 4f7dc9b6 the library was moved to /vendor so
> the old file must be removed.
>
> Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
> ---
>  CleanSpec.mk | 1 +
>  1 file changed, 1 insertion(+)
>  create mode 100644 CleanSpec.mk
>
> diff --git a/CleanSpec.mk b/CleanSpec.mk
> new file mode 100644
> index 0000000..99dcecd
> --- /dev/null
> +++ b/CleanSpec.mk
> @@ -0,0 +1 @@
> +$(call add-clean-step, rm -rf $(TARGET_OUT)/lib*/hw/hwcomposer.drm.so)

Seems a bit silly to add forever an explicit file to clean for a
transient problem.

Rob
Chih-Wei Huang Nov. 6, 2017, 2:12 a.m. UTC | #2
2017-11-03 20:35 GMT+08:00 Rob Herring <robh@kernel.org>:
> On Thu, Nov 2, 2017 at 11:45 PM, Chih-Wei Huang <cwhuang@android-x86.org> wrote:
>> The file contains rules that are executed on incremental builds.
>> Since commit 4f7dc9b6 the library was moved to /vendor so
>> the old file must be removed.
>>
>> Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
>> ---
>>  CleanSpec.mk | 1 +
>>  1 file changed, 1 insertion(+)
>>  create mode 100644 CleanSpec.mk
>>
>> diff --git a/CleanSpec.mk b/CleanSpec.mk
>> new file mode 100644
>> index 0000000..99dcecd
>> --- /dev/null
>> +++ b/CleanSpec.mk
>> @@ -0,0 +1 @@
>> +$(call add-clean-step, rm -rf $(TARGET_OUT)/lib*/hw/hwcomposer.drm.so)
>
> Seems a bit silly to add forever an explicit file to clean for a
> transient problem.

The problem is people usually won't notice
the libraries have been moved to /vendor.
In an incremental build the old files still
exist in /system that may cause issues.

It's necessary unless you have a better idea
to tell people "hey, you need to do a clean build".
Robert Foss Nov. 6, 2017, 11:16 a.m. UTC | #3
Hey Rob,

On Fri, 2017-11-03 at 07:35 -0500, Rob Herring wrote:
> On Thu, Nov 2, 2017 at 11:45 PM, Chih-Wei Huang <cwhuang@android-x86.
> org> wrote:
> > The file contains rules that are executed on incremental builds.
> > Since commit 4f7dc9b6 the library was moved to /vendor so
> > the old file must be removed.
> > 
> > Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
> > ---
> >  CleanSpec.mk | 1 +
> >  1 file changed, 1 insertion(+)
> >  create mode 100644 CleanSpec.mk
> > 
> > diff --git a/CleanSpec.mk b/CleanSpec.mk
> > new file mode 100644
> > index 0000000..99dcecd
> > --- /dev/null
> > +++ b/CleanSpec.mk
> > @@ -0,0 +1 @@
> > +$(call add-clean-step, rm -rf
> > $(TARGET_OUT)/lib*/hw/hwcomposer.drm.so)
> 
> Seems a bit silly to add forever an explicit file to clean for a
> transient problem.
> 
While transient, if maintaining multuple Android versions it may still
stick around for quite some time.

That being said, I don't have much of an opinion about this.


Rob.
Rob Herring (Arm) Nov. 6, 2017, 1:38 p.m. UTC | #4
On Mon, Nov 6, 2017 at 5:16 AM, Robert Foss <robert.foss@collabora.com> wrote:
> Hey Rob,
>
> On Fri, 2017-11-03 at 07:35 -0500, Rob Herring wrote:
>> On Thu, Nov 2, 2017 at 11:45 PM, Chih-Wei Huang <cwhuang@android-x86.
>> org> wrote:
>> > The file contains rules that are executed on incremental builds.
>> > Since commit 4f7dc9b6 the library was moved to /vendor so
>> > the old file must be removed.
>> >
>> > Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
>> > ---
>> >  CleanSpec.mk | 1 +
>> >  1 file changed, 1 insertion(+)
>> >  create mode 100644 CleanSpec.mk
>> >
>> > diff --git a/CleanSpec.mk b/CleanSpec.mk
>> > new file mode 100644
>> > index 0000000..99dcecd
>> > --- /dev/null
>> > +++ b/CleanSpec.mk
>> > @@ -0,0 +1 @@
>> > +$(call add-clean-step, rm -rf
>> > $(TARGET_OUT)/lib*/hw/hwcomposer.drm.so)
>>
>> Seems a bit silly to add forever an explicit file to clean for a
>> transient problem.
>>
> While transient, if maintaining multuple Android versions it may still
> stick around for quite some time.

That's not the issue. Once you do a clean build, the problem is gone
regardless of version.

Rob
diff mbox

Patch

diff --git a/CleanSpec.mk b/CleanSpec.mk
new file mode 100644
index 0000000..99dcecd
--- /dev/null
+++ b/CleanSpec.mk
@@ -0,0 +1 @@ 
+$(call add-clean-step, rm -rf $(TARGET_OUT)/lib*/hw/hwcomposer.drm.so)