Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

util/build: rationalize json files #12

Closed
2 of 4 tasks
Shamar opened this issue Aug 12, 2015 · 6 comments
Closed
2 of 4 tasks

util/build: rationalize json files #12

Shamar opened this issue Aug 12, 2015 · 6 comments

Comments

@Shamar
Copy link

Shamar commented Aug 12, 2015

Since we use json files to guide the build, we should give them a bit more love:

  • replace .. inclusions with absolute paths (/ is the $HARVEY dir): so we can move folders easily
  • inherit CFlags whenever possible
  • make architecture-dependent paths depend on $ARCH (see core.json).
    Requires little changes to build.go
  • use environment variables in Pre/Post scripts when appropriate (eg here and here)
@sevki
Copy link
Member

sevki commented Aug 13, 2015

on this

@Shamar Shamar assigned Shamar and unassigned Shamar Aug 14, 2015
@Shamar
Copy link
Author

Shamar commented Aug 14, 2015

@sevki, if you are still working on this, give a look at this pending CL.

I have a small task pending on Cflags (enable extensive debug flags everywhere as I need them for #5), but to avoid Merge Conflict on Gerrit, I can send you a pull request in a branch you prefer.

Shamar added a commit that referenced this issue Aug 15, 2015
- introduced sh(*exec.Cmd) that pipes build commands to a shell
  so that Coverity's tools can intercept calls to exec(2) via
  their $LD_PRELOADed proxy (see #8)
- renamed fail(err) in failOn(err) and used it whenever possible
- evaluate /$ARCH/ instead of using /amd64/ in paths
- adjust1: eval environment variables (see #12)

Change-Id: I8811c827fe38b2531dcad87466a8558be5002561
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
@Shamar
Copy link
Author

Shamar commented Aug 17, 2015

@sevki in my debug-everything branch you can see the debugging options that I added.

@sevki
Copy link
Member

sevki commented Aug 17, 2015

@Shamar cool

@Shamar
Copy link
Author

Shamar commented Aug 20, 2015

In b8cfdea @rminnich centralized Cflags in amd64/include/cflags.json.

Shamar added a commit that referenced this issue Aug 22, 2015
Change-Id: I978252232f67e2bf3d188f586a4d08339f0de342
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
Shamar added a commit that referenced this issue Nov 7, 2015
Change-Id: Ic9c6d06b8bf957895d472a1ce09767cdb27998b7
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
Shamar added a commit that referenced this issue Dec 2, 2015
…esCmd, see #12

Change-Id: I6070b7f001f27021175f732523041a6a515f1734
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
Shamar added a commit that referenced this issue Dec 2, 2015
Change-Id: If8e9460c42c8c77ae843bed88589b2f36f43a696
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
Shamar added a commit that referenced this issue Dec 2, 2015
Change-Id: I230d279074d24f483027886634fc40aa774bef58
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
Shamar added a commit that referenced this issue Dec 2, 2015
Change-Id: I605d83868cdb96b3697c4a0c984b412c6fba926a
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
Shamar added a commit that referenced this issue Dec 2, 2015
Change-Id: I1734b3d8793c37292419670de79ee54b91e0a339
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
@elbing
Copy link
Member

elbing commented Jan 22, 2016

A new build tool is in progress.

@elbing elbing closed this as completed Jan 22, 2016
rminnich pushed a commit to rminnich/harvey that referenced this issue Jan 5, 2018
Change-Id: Ic9c6d06b8bf957895d472a1ce09767cdb27998b7
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
rminnich pushed a commit to rminnich/harvey that referenced this issue Jan 5, 2018
…esCmd, see Harvey-OS#12

Change-Id: I6070b7f001f27021175f732523041a6a515f1734
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
rminnich pushed a commit to rminnich/harvey that referenced this issue Jan 5, 2018
Change-Id: If8e9460c42c8c77ae843bed88589b2f36f43a696
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
rminnich pushed a commit to rminnich/harvey that referenced this issue Jan 5, 2018
Change-Id: I230d279074d24f483027886634fc40aa774bef58
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
rminnich pushed a commit to rminnich/harvey that referenced this issue Jan 5, 2018
Change-Id: I605d83868cdb96b3697c4a0c984b412c6fba926a
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
rminnich pushed a commit to rminnich/harvey that referenced this issue Jan 5, 2018
Change-Id: I1734b3d8793c37292419670de79ee54b91e0a339
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
rminnich pushed a commit to rminnich/harvey that referenced this issue Jan 5, 2018
…-OS#12

- introduced sh(*exec.Cmd) that pipes build commands to a shell
  so that Coverity's tools can intercept calls to exec(2) via
  their $LD_PRELOADed proxy (see Harvey-OS#8)
- renamed fail(err) in failOn(err) and used it whenever possible
- evaluate /$ARCH/ instead of using /amd64/ in paths
- adjust1: eval environment variables (see Harvey-OS#12)

Change-Id: I8811c827fe38b2531dcad87466a8558be5002561
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
rminnich pushed a commit to rminnich/harvey that referenced this issue Jan 5, 2018
Change-Id: I978252232f67e2bf3d188f586a4d08339f0de342
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
rminnich pushed a commit to rminnich/harvey that referenced this issue Jan 5, 2018
Change-Id: Ic9c6d06b8bf957895d472a1ce09767cdb27998b7
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
rminnich pushed a commit to rminnich/harvey that referenced this issue Jan 5, 2018
…esCmd, see Harvey-OS#12

Change-Id: I6070b7f001f27021175f732523041a6a515f1734
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
rminnich pushed a commit to rminnich/harvey that referenced this issue Jan 5, 2018
Change-Id: If8e9460c42c8c77ae843bed88589b2f36f43a696
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
rminnich pushed a commit to rminnich/harvey that referenced this issue Jan 5, 2018
Change-Id: I230d279074d24f483027886634fc40aa774bef58
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
rminnich pushed a commit to rminnich/harvey that referenced this issue Jan 5, 2018
Change-Id: I605d83868cdb96b3697c4a0c984b412c6fba926a
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
rminnich pushed a commit to rminnich/harvey that referenced this issue Jan 5, 2018
Change-Id: I1734b3d8793c37292419670de79ee54b91e0a339
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
rminnich pushed a commit to rminnich/harvey that referenced this issue Jan 5, 2018
…-OS#12

- introduced sh(*exec.Cmd) that pipes build commands to a shell
  so that Coverity's tools can intercept calls to exec(2) via
  their $LD_PRELOADed proxy (see Harvey-OS#8)
- renamed fail(err) in failOn(err) and used it whenever possible
- evaluate /$ARCH/ instead of using /amd64/ in paths
- adjust1: eval environment variables (see Harvey-OS#12)

Change-Id: I8811c827fe38b2531dcad87466a8558be5002561
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
rminnich pushed a commit to rminnich/harvey that referenced this issue Jan 5, 2018
Change-Id: I978252232f67e2bf3d188f586a4d08339f0de342
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
rminnich pushed a commit to rminnich/harvey that referenced this issue Jan 5, 2018
Change-Id: Ic9c6d06b8bf957895d472a1ce09767cdb27998b7
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
rminnich pushed a commit to rminnich/harvey that referenced this issue Jan 5, 2018
…esCmd, see Harvey-OS#12

Change-Id: I6070b7f001f27021175f732523041a6a515f1734
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
rminnich pushed a commit to rminnich/harvey that referenced this issue Jan 5, 2018
Change-Id: If8e9460c42c8c77ae843bed88589b2f36f43a696
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
rminnich pushed a commit to rminnich/harvey that referenced this issue Jan 5, 2018
Change-Id: I230d279074d24f483027886634fc40aa774bef58
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
rminnich pushed a commit to rminnich/harvey that referenced this issue Jan 5, 2018
Change-Id: I605d83868cdb96b3697c4a0c984b412c6fba926a
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
rminnich pushed a commit to rminnich/harvey that referenced this issue Jan 5, 2018
Change-Id: I1734b3d8793c37292419670de79ee54b91e0a339
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
gmacd pushed a commit to gmacd/harvey that referenced this issue Jan 8, 2018
…-OS#12

- introduced sh(*exec.Cmd) that pipes build commands to a shell
  so that Coverity's tools can intercept calls to exec(2) via
  their $LD_PRELOADed proxy (see Harvey-OS#8)
- renamed fail(err) in failOn(err) and used it whenever possible
- evaluate /$ARCH/ instead of using /amd64/ in paths
- adjust1: eval environment variables (see Harvey-OS#12)

Change-Id: I8811c827fe38b2531dcad87466a8558be5002561
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
gmacd pushed a commit to gmacd/harvey that referenced this issue Jan 8, 2018
Change-Id: I978252232f67e2bf3d188f586a4d08339f0de342
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
gmacd pushed a commit to gmacd/harvey that referenced this issue Jan 8, 2018
Change-Id: Ic9c6d06b8bf957895d472a1ce09767cdb27998b7
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
gmacd pushed a commit to gmacd/harvey that referenced this issue Jan 8, 2018
…esCmd, see Harvey-OS#12

Change-Id: I6070b7f001f27021175f732523041a6a515f1734
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
gmacd pushed a commit to gmacd/harvey that referenced this issue Jan 8, 2018
Change-Id: If8e9460c42c8c77ae843bed88589b2f36f43a696
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
gmacd pushed a commit to gmacd/harvey that referenced this issue Jan 8, 2018
Change-Id: I230d279074d24f483027886634fc40aa774bef58
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
gmacd pushed a commit to gmacd/harvey that referenced this issue Jan 8, 2018
Change-Id: I605d83868cdb96b3697c4a0c984b412c6fba926a
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
gmacd pushed a commit to gmacd/harvey that referenced this issue Jan 8, 2018
Change-Id: I1734b3d8793c37292419670de79ee54b91e0a339
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
gmacd pushed a commit to gmacd/harvey that referenced this issue Jan 8, 2018
…-OS#12

- introduced sh(*exec.Cmd) that pipes build commands to a shell
  so that Coverity's tools can intercept calls to exec(2) via
  their $LD_PRELOADed proxy (see Harvey-OS#8)
- renamed fail(err) in failOn(err) and used it whenever possible
- evaluate /$ARCH/ instead of using /amd64/ in paths
- adjust1: eval environment variables (see Harvey-OS#12)

Change-Id: I8811c827fe38b2531dcad87466a8558be5002561
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
gmacd pushed a commit to gmacd/harvey that referenced this issue Jan 8, 2018
Change-Id: I978252232f67e2bf3d188f586a4d08339f0de342
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
gmacd pushed a commit to gmacd/harvey that referenced this issue Jan 8, 2018
Change-Id: Ic9c6d06b8bf957895d472a1ce09767cdb27998b7
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
gmacd pushed a commit to gmacd/harvey that referenced this issue Jan 8, 2018
…esCmd, see Harvey-OS#12

Change-Id: I6070b7f001f27021175f732523041a6a515f1734
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
gmacd pushed a commit to gmacd/harvey that referenced this issue Jan 8, 2018
Change-Id: If8e9460c42c8c77ae843bed88589b2f36f43a696
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
gmacd pushed a commit to gmacd/harvey that referenced this issue Jan 8, 2018
Change-Id: I230d279074d24f483027886634fc40aa774bef58
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
gmacd pushed a commit to gmacd/harvey that referenced this issue Jan 8, 2018
Change-Id: I605d83868cdb96b3697c4a0c984b412c6fba926a
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
gmacd pushed a commit to gmacd/harvey that referenced this issue Jan 8, 2018
Change-Id: I1734b3d8793c37292419670de79ee54b91e0a339
Signed-off-by: Giacomo Tesio <giacomo@tesio.it>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants