Skip to content
Snippets Groups Projects
Commit 650f2988 authored by Jens Wiklander's avatar Jens Wiklander
Browse files

Slight change in EDK2 compiling


Slightly changes the way EDK2 is compiled by sourcing edksetup.sh
instead of just running it. When compiling EDK2 that script is supposed
to be sourced.

Also records a dependency to iasl in recend EDK2 builds

Reviewed-by: default avatarJoakim Bech <joakim.bech@linaro.org>
Signed-off-by: default avatarJens Wiklander <jens.wiklander@linaro.org>
parent 8b3c4e0e
No related branches found
No related tags found
No related merge requests found
......@@ -119,11 +119,11 @@ target you will use in the end.
```bash
$ sudo apt-get install android-tools-adb android-tools-fastboot autoconf \
automake bc bison build-essential cscope curl device-tree-compiler flex \
ftp-upload gdisk libattr1-dev libc6:i386 libcap-dev libfdt-dev libftdi-dev \
libglib2.0-dev libhidapi-dev libncurses5-dev libpixman-1-dev \
libssl-dev libstdc++6:i386 libtool libz1:i386 make mtools netcat \
python-crypto python-serial python-wand unzip uuid-dev xdg-utils \
xterm xz-utils zlib1g-dev
ftp-upload gdisk iasl libattr1-dev libc6:i386 libcap-dev libfdt-dev \
libftdi-dev libglib2.0-dev libhidapi-dev libncurses5-dev \
libpixman-1-dev libssl-dev libstdc++6:i386 libtool libz1:i386 make \
mtools netcat python-crypto python-serial python-wand unzip uuid-dev \
xdg-utils xterm xz-utils zlib1g-dev
```
## 7.2 Install Android repo
......
......@@ -2,6 +2,7 @@
# Common definition to all platforms
#
SHELL := bash
BASH ?= bash
ROOT ?= $(shell pwd)/..
......@@ -175,15 +176,15 @@ linux-cleaner-common: linux-defconfig-clean
# Make sure edksetup.sh only will be called once and that we don't rebuild
# BaseTools again and again.
$(EDK2_PATH)/Conf/target.txt:
set -e && cd $(EDK2_PATH) && $(BASH) edksetup.sh && \
set -e && cd $(EDK2_PATH) && source edksetup.sh && \
$(MAKE) -j1 -C $(EDK2_PATH)/BaseTools
edk2-common: $(EDK2_PATH)/Conf/target.txt
set -e && cd $(EDK2_PATH) && $(BASH) edksetup.sh && \
set -e && cd $(EDK2_PATH) && source edksetup.sh && \
$(call edk2-call)
edk2-clean-common:
set -e && cd $(EDK2_PATH) && $(BASH) edksetup.sh && \
set -e && cd $(EDK2_PATH) && source edksetup.sh && \
$(call edk2-call) clean && \
$(MAKE) -j1 -C $(EDK2_PATH)/BaseTools clean && \
rm -f $(EDK2_PATH)/Conf/target.txt
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment