Closed Bug 1141191 Opened 9 years ago Closed 9 years ago

[Build] Write a script to pre-build lightsaber and overwrite B2G's gaia

Categories

(Firefox OS Graveyard :: Gaia, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: drs, Assigned: drs)

References

Details

(Whiteboard: [spark])

Attachments

(1 file)

Wander, I think this is all you'll need. You'll need to write a small shim script just to clone and run this. It would look like this:

```shell
#!/bin/bash

# Assume that B2G is already cloned any synced, but not built yet.

git clone git@github.com:fxos/lightsaber
cd lightsaber
# Change this path if it's somewhere else
B2G_PATH=../B2G ./replace-B2G.sh
cd ../B2G
./build.sh
```

Could you try this and let me know what happens?
Flags: needinfo?(wcosta)
(In reply to Doug Sherk (:drs) (use needinfo?) from comment #1)
> Created attachment 8574775 [details]
> Add script to overwrite B2G repo with shallow-built lightsaber Gaia.
> 
> Wander, I think this is all you'll need. You'll need to write a small shim
> script just to clone and run this. It would look like this:
> 
> ```shell
> #!/bin/bash
> 
> # Assume that B2G is already cloned any synced, but not built yet.
> 
> git clone git@github.com:fxos/lightsaber
> cd lightsaber
> # Change this path if it's somewhere else
> B2G_PATH=../B2G ./replace-B2G.sh
> cd ../B2G
> ./build.sh
> ```
> 
> Could you try this and let me know what happens?

When I run make shallow, I get an error [1]. What could be wrong?

[1] https://pastebin.mozilla.org/8824970
Flags: needinfo?(wcosta) → needinfo?(drs.bugzilla)
Answered via IRC. Basically, you have to follow these instructions:
https://github.com/fxos/lightsaber#quick-setup
Flags: needinfo?(drs.bugzilla)
Blocks: 1145583
Comment on attachment 8574775 [details]
Add script to overwrite B2G repo with shallow-built lightsaber Gaia.

Wander told me over IRC that this works.
Attachment #8574775 - Flags: review?(kgrandon)
Comment on attachment 8574775 [details]
Add script to overwrite B2G repo with shallow-built lightsaber Gaia.

lgtm.
Attachment #8574775 - Flags: review?(kgrandon) → review+
https://github.com/fxos/lightsaber/commit/cda832be319e7cb3410050f1db4d9d2e08e5d03b
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Whiteboard: [lightsaber] → [ignite]
Whiteboard: [ignite] → [spark]
Blocks: spark-build, spark-ota
No longer blocks: spark
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: