add density option for build and release

Change-Id: I7f127c8867847e9e5467e5d85dd4a202ba5c8699