Closed Bug 875659 Opened 11 years ago Closed 11 years ago

Only build B2G Valgrind with B2G_VALGRIND environment variable is on

Categories

(Firefox OS Graveyard :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: qdot, Assigned: qdot)

Details

Attachments

(1 file)

Right now we build valgrind for all builds of B2G. We should only have any package built if the B2G_VALGRIND environment variable is on.
What repo is this against?
Comment on attachment 753939 [details] [diff] [review]
Patch 1 (v1) - Only build valgrind when B2G_VALGRIND environment variable is on

I think I would put this ifneq a little closer to https://github.com/mozilla-b2g/valgrind/blob/fxos/Android.mk#L23, but it doesn't matter a whole much.

BTW, another alternative would be to put this on valgrind.mk. Removing from PRODUCT_PACKAGES doesn't stop it from building, but stops it from being installed on the image. I suspect we would rather avoid building at all, so this is better.

Another observation - this valgrind integration might also be useful for Android, so using something less B2G specific than B2G_VALGRIND might be better.
Attachment #753939 - Flags: review?(mwu) → review+
(In reply to Michael Wu [:mwu] from comment #4)
> Comment on attachment 753939 [details] [diff] [review]
> Patch 1 (v1) - Only build valgrind when B2G_VALGRIND environment variable is
> on
> 
> I think I would put this ifneq a little closer to
> https://github.com/mozilla-b2g/valgrind/blob/fxos/Android.mk#L23, but it
> doesn't matter a whole much.
> 
> BTW, another alternative would be to put this on valgrind.mk. Removing from
> PRODUCT_PACKAGES doesn't stop it from building, but stops it from being
> installed on the image. I suspect we would rather avoid building at all, so
> this is better.

We already do that, actually. The valgrind block in gonk-misc/b2g.mk has the same ifneq around it. So currently we already build, but only integrate if it's on. Adding this means we only build and integrate if the environment variable is on.

> Another observation - this valgrind integration might also be useful for
> Android, so using something less B2G specific than B2G_VALGRIND might be
> better.

For fennec you mean? We'd need a few different things for that, as I'm making some assumptions about locations of files in the B2G tree in the current setup.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: