- Nov 04, 2015
-
-
Peter Maydell authored
It can sometimes be useful to pass extra arguments to the QEMU that is launched via the 'run-only' target. Support this via an environment variable QEMU_EXTRA_ARGS, which can be used like: make run-only QEMU_PATH=path/to/qemu/directory QEMU_EXTRA_ARGS='args here' Signed-off-by:
Peter Maydell <peter.maydell@linaro.org> Reviewed-by:
Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by:
Joakim Bech <joakim.bech@linaro.org>
-
- Nov 02, 2015
-
-
Peter Maydell authored
At the moment we start several terminals, and then sleep for a second before running a QEMU instance which will connect to processes run in those terminals. This will fail if the terminals are displayed on a slow remote X11 connection, because the terminals won't have completed startup before the one second delay elapses. Replace the delay with a loop that checks whether there's anything listening on the relevant TCP ports yet. Fixes https://github.com/OP-TEE/build/issues/20 Signed-off-by:
Peter Maydell <peter.maydell@linaro.org> Reviewed-by:
Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by:
Cedric Chaumont <cedric.chaumont@linaro.org> Reviewed-by:
Joakim Bech <joakim.bech@linaro.org> Tested-by:
Joakim Bech <joakim.bech@linaro.org>
-
- Oct 27, 2015
-
-
Jerome Forissier authored
- Make sure launch-terminal cannot block by adding a '&' - Use xterm instead of gnome-terminal because it is more likely to be installed by default. Fixes https://github.com/OP-TEE/build/issues/18 . Signed-off-by:
Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by:
Joakim Bech <joakim.bech@linaro.org> Reviewed-by:
Pascal Brand <pascal.brand@linaro.org> Tested-by:
Pascal Brand <pascal.brand@linaro.org> Reported-by:
Peter Maydell <peter.maydell@linaro.org> Tested-by:
Peter Maydell <peter.maydell@linaro.org>
-
- Oct 19, 2015
-
-
Pascal Brand authored
Reviewed-by:
Joakim Bech <joakim.bech@linaro.org> Reviewed-by:
Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by:
Pascal Brand <pascal.brand@st.com>
-
Pascal Brand authored
Reviewed-by:
Joakim Bech <joakim.bech@linaro.org> Reviewed-by:
Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by:
Pascal Brand <pascal.brand@st.com>
-
Pascal Brand authored
Reviewed-by:
Joakim Bech <joakim.bech@linaro.org> Reviewed-by:
Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by:
Pascal Brand <pascal.brand@st.com>
-
- Oct 14, 2015
-
-
Pascal Brand authored
Reviewed-by:
Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by:
Pascal Brand <pascal.brand@st.com>
-
- Oct 07, 2015
-
-
SY Chiu authored
Signed-off-by:
SY Chiu <sy.chiu@linaro.org> Tested-by: SY Chiu <sy.chiu@linaro.org> (QEMU) Reviewed-by:
Joakim Bech <joakim.bech@linaro.org> Reviewed-by:
Pascal Brand <pascal.brand@linaro.org>
-
- Oct 01, 2015
-
-
Joakim Bech authored
Adds two new targets, one that downloads the necessary nvme.img file and another target that flash the device. We have also added a couple of .PHONY directives to a few targets. Signed-off-by:
Joakim Bech <joakim.bech@linaro.org> Reviewed-by:
Victor Chong <victor.chong@linaro.org> Reviewed-by:
Pascal Brand <pascal.brand@linaro.org>
-
- Sep 16, 2015
-
-
Pascal Brand authored
Reviewed-by:
Joakim Bech <joakim.bech@linaro.org> Reviewed-by:
Jerome Forissier <jerome.forissier@linaro.org> Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (HiKey) Tested-by: SY Chiu <sy.chiu@linaro.org> (MT8173 EVB) Tested-by: Pascal Brand <pascal.brand@linaro.org> (QEMU) Tested-by: Pascal Brand <pascal.brand@linaro.org> (FVP) Signed-off-by:
Pascal Brand <pascal.brand@st.com>
-
Pascal Brand authored
Reviewed-by:
Joakim Bech <joakim.bech@linaro.org> Reviewed-by:
Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by:
Pascal Brand <pascal.brand@st.com>
-
Pascal Brand authored
Reviewed-by:
Joakim Bech <joakim.bech@linaro.org> Reviewed-by:
Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by:
Pascal Brand <pascal.brand@st.com>
-
- Sep 09, 2015
-
-
Jerome Forissier authored
The Expect timeout can be passed via make as, for instance: make check TIMEOUT=60 Signed-off-by:
Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by:
Joakim Bech <joakim.bech@linaro.org>
-
Jerome Forissier authored
* Detect kernel rcu_sched stall + cosmetic improvements * Start QEMU with options '-nographic -monitor none'. Without this, QEMU cannot be run on the Travis servers which have no display. '-monitor none' is needed when '-nographic' is set and one wants to redirect serial port 0 (first occurrence of '-serial stdio'), otherwise a conflict occurs and the following message is shown: qemu-system-arm: -serial stdio: cannot use stdio by multiple character devices * Fix undefined variable error on timeout * Set LD_LIBRARY_PATH. The libraries that come with the compiler sometimes end up under /lib, or under /lib/arm-linx-gnueabihf. By setting LD_LIBRARY_PATH we support both. * Catch kernel panic/timeout on boot to make the script more robust. Signed-off-by:
Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by:
Joakim Bech <joakim.bech@linaro.org>
-
Jerome Forissier authored
- If $(CROSS_COMPILE) is defined, use it to set the other cross compile variables used in common.mk: CROSS_COMPILE_{S,NS}_{USER,KERNEL}. The linux and qemu targets are also adjusted to use those variables, they may be updated later when common targets are added. - Use $(MAKE) instead of plain 'make' so that some special make flags are handled properly (-n for instance). - Fix filelist-tee dependencies. Since this target uses 'find' to make a list of files built by xtest, xtest is a dependency. - make check: add DUMP_LOGS_ON_ERROR variable. To dump serial0.log and serial1.log when test fails, run: make check DUMP_LOGS_ON_ERROR=1 - Add missing + before $(MAKE). The $(bios-qemu-common) macro defines a command that must start with a '+' character for reasons related to the GNU make jobserver implementation [1]. Without it, the sub-make would print the following warning and not run in parallel: make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. [1] http://make.mad-scientist.net/papers/jobserver-implementation/ ("The Final Result", point 7.) - Remove redundant dependencies Signed-off-by:
Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by:
Joakim Bech <joakim.bech@linaro.org>
-
- Sep 08, 2015
-
-
Pascal Brand authored
Signed-off-by:
Pascal Brand <pascal.brand@st.com> Reviewed-by:
Jerome Forissier <jerome.forissier@linaro.org>
-
Pascal Brand authored
Signed-off-by:
Pascal Brand <pascal.brand@st.com> Reviewed-by:
Jerome Forissier <jerome.forissier@linaro.org>
-
Jerome Forissier authored
The code added by commits d6536da6 ("Commonlize xtest compilation among all platforms") and 070d9559 ("common build: optee components") introduces race conditions that break parallel build (make -jX). This is due to manually launching a make sub-process to run the -common targets, and can be fixed by just declaring a dependency instead. Specific flags are appended to common flags, rather than passed as arguments to a new "make" sub-process. So, basically: foo-common: $(MAKE) -C foo_dir [A=a B=B] foo: $(MAKE) foo-common [C=c] is turned into: FOO_COMMON_FLAGS ?= A=a B=b foo-common: $(MAKE) -C foo_dir $(FOO_COMMON_FLAGS) FOO_COMMON_FLAGS += C=c foo: foo-common At the same time this allows foo: to override flags, for instance set A=aa in the above example (prior to this, A=a would have had a higher priority). Signed-off-by:
Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by:
Pascal Brand <pascal.brand@st.com> Reviewed-by:
Jerome Forissier <jerome.forissier@linaro.org>
-
- Sep 03, 2015
-
-
Pascal Brand authored
Signed-off-by:
Pascal Brand <pascal.brand@st.com> Reviewed-by:
Jerome Forissier <jerome.forissier@linaro.org>
-
Pascal Brand authored
This is the first patch of a serie that show how makefile for specific platform support may use common rules. comon.mk is introduced. It contains: - common variable definitions, such as the compilers - common git to use and path (typically the OP-TEE ones) - common macros (CCACHE, and others to come). Signed-off-by:
Pascal Brand <pascal.brand@st.com> Reviewed-by:
Jerome Forissier <jerome.forissier@linaro.org>
-
- Sep 01, 2015
-
-
Jerome Forissier authored
Signed-off-by:
Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by:
Pascal Brand <pascal.brand@linaro.org>
-
Jerome Forissier authored
Signed-off-by:
Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by:
Pascal Brand <pascal.brand@linaro.org>
-
Jerome Forissier authored
Adds an Expect script to launch QEMU, run xtest and return a pass/fail status. This makes it even easier to launch non-regression tests and possibly integrate into a CI loop. The script may be invoked through 'make check' or 'make check-only'. The former considers dependencies, while the latter just runs the script. The output of serial ports 0 and 1 are saved to serial0.log and serial1.log, respectively. Expect may be installed with 'sudo apt-get install expect' on Debian/ Ubuntu distributions. Sample output: $ make -j9 check <snip> expect qemu-check.exp -- \ --bios /home/jerome/work/optee_repo/out/bios-qemu/bios.bin Starting QEMU... done, guest is booted. Loading OP-TEE driver and tee-supplicant... done. Running: xtest... ##########################################<snip> Status: PASS (404 test cases) Signed-off-by:
Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by:
Pascal Brand <pascal.brand@linaro.org>
-
Jerome Forissier authored
The busybox build uses gen_init_cpio from the linux directory, so the target has to depend on linux. Signed-off-by:
Jerome Forissier <jerome.forissier@linaro.org>
-
Pascal Brand authored
Signed-off-by:
Pascal Brand <pascal.brand@st.com> Reviewed-by:
Jerome Forissier <jerome.forissier@linaro.org> Tested-by:
Jerome Forissier <jerome.forissier@linaro.org>
-
Pascal Brand authored
Signed-off-by:
Pascal Brand <pascal.brand@st.com> Reviewed-by:
Jerome Forissier <jerome.forissier@linaro.org>
-
- Jul 24, 2015
-
-
James Kung authored
Signed-off-by:
James Kung <james.kung@linaro.org> Tested-by: James Kung <james.kung@linaro.org> (MT8173_EVB)
-
- Jul 21, 2015
-
-
SY Chiu authored
Signed-off-by:
SY Chiu <sy.chiu@linaro.org> Tested-by: SY Chiu <sy.chiu@linaro.org> (MT8173_EVB) Reviewed-by:
Pascal Brand <pascal.brand@linaro.org>
-
- Jul 10, 2015
-
-
Pascal Brand authored
Reviewed-by:
Joakim Bech <joakim.bech@linaro.org> Signed-off-by:
Pascal Brand <pascal.brand@st.com>
-
- Jul 09, 2015
-
-
Joakim Bech authored
This is the first commit containing helper makefiles to be able to build OP-TEE easily regardless of previous knowledge of OP-TEE. To use this particular git and the makefiles, you should have installed the environment according to the instructions at: https://github.com/OP-TEE/manifest/blob/master/README.md In this commit there are support for building OP-TEE for: - QEMU (default) - FVP - Hikey More targets will be added later on. Signed-off-by:
Joakim Bech <joakim.bech@linaro.org> Tested-by: Joakim Bech <joakim.bech@linaro.org> (QEMU, FVP) Tested-by: Victor Chong <victor.chong@linaro.org> (Hikey)
-