apple: build.sh: rework MAKEFLAGS jobs count
commita5dc0a00e504db427345cbea73e3b33620b88782
authorAlexandre Janniaux <ajanni@videolabs.io>
Fri, 22 Jan 2021 09:53:23 +0000 (22 10:53 +0100)
committerAlexandre Janniaux <ajanni@videolabs.io>
Mon, 25 Jan 2021 10:22:37 +0000 (25 11:22 +0100)
treea61a5c67771d83284b7a304f21fee8e4efd5f2ab
parenta2700c735673ff9b1aa9d70d20ae0383c8c1b6d0
apple: build.sh: rework MAKEFLAGS jobs count

Forward the global MAKEFLAGS but adds the job count as is:
 - pass the number of core by default to keep the current behaviour of
   the script.
 - if the number of core is forwarded to MAKEFLAGS, use them instead of
   the previous.
 - if the number of core is explicitly given to the buildscript through
   the -j option, use them instead of the previous.
extras/package/apple/build.sh