sdm845Pkg: Library: add simple-init
Signed-off-by: BigfootACA <bigfoot@classfun.cn>
This commit is contained in:
parent
4155e9b35d
commit
92cd6a0f87
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -13,3 +13,6 @@
|
||||
[submodule "sdm845Pkg/Library/StdLib"]
|
||||
path = sdm845Pkg/Library/StdLib
|
||||
url = https://github.com/tianocore/edk2-libc.git
|
||||
[submodule "sdm845Pkg/Library/SimpleInit"]
|
||||
path = sdm845Pkg/Library/SimpleInit
|
||||
url = https://github.com/BigfootACA/simple-init.git
|
||||
|
22
build.sh
22
build.sh
@ -134,11 +134,20 @@ then set -e
|
||||
git submodule init;git submodule update
|
||||
git checkout .gitmodules
|
||||
popd
|
||||
pushd sdm845Pkg/Library/SimpleInit
|
||||
git submodule set-url libs/lvgl https://hub.fastgit.org/lvgl/lvgl.git
|
||||
git submodule set-url libs/lodepng https://hub.fastgit.org/lvandeve/lodepng.git
|
||||
git submodule set-url libs/freetype https://hub.fastgit.org/freetype/freetype.git
|
||||
git submodule init;git submodule update
|
||||
popd
|
||||
git checkout .gitmodules
|
||||
else git submodule init;git submodule update --depth 1
|
||||
pushd edk2
|
||||
git submodule init;git submodule update
|
||||
popd
|
||||
pushd sdm845Pkg/Library/SimpleInit
|
||||
git submodule init;git submodule update
|
||||
popd
|
||||
fi
|
||||
set +e
|
||||
fi
|
||||
@ -160,19 +169,30 @@ do if [ -n "${i}" ]&&[ -d "${i}/Platform" ]
|
||||
break
|
||||
fi
|
||||
done
|
||||
for i in "${SIMPLE_INIT}" sdm845Pkg/Library/SimpleInit ./simple-init ../simple-init
|
||||
do if [ -n "${i}" ]&&[ -f "${i}/SimpleInit.inc" ]
|
||||
then _SIMPLE_INIT="$(realpath "${i}")"
|
||||
break
|
||||
fi
|
||||
done
|
||||
[ -n "${_EDK2}" ]||_error "EDK2 not found, please see README.md"
|
||||
[ -n "${_EDK2_LIBC}" ]||_error "EDK2-LibC not found, please see README.md"
|
||||
[ -n "${_EDK2_PLATFORMS}" ]||_error "EDK2 Platforms not found, please see README.md"
|
||||
[ -n "${_SIMPLE_INIT}" ]||_error "SimpleInit not found, please see README.md"
|
||||
echo "EDK2 Path: ${_EDK2}"
|
||||
echo "EDK2_PLATFORMS Path: ${_EDK2_PLATFORMS}"
|
||||
export GCC5_AARCH64_PREFIX="${CROSS_COMPILE:-aarch64-linux-gnu-}"
|
||||
export PACKAGES_PATH="$_EDK2:$_EDK2_PLATFORMS:$_EDK2_LIBC:$PWD"
|
||||
export PACKAGES_PATH="$_EDK2:$_EDK2_PLATFORMS:$_EDK2_LIBC:$_SIMPLE_INIT:$PWD"
|
||||
export WORKSPACE="${PWD}/workspace"
|
||||
GITCOMMIT="$(git describe --tags --always)"||GITCOMMIT="unknown"
|
||||
export GITCOMMIT
|
||||
echo > ramdisk
|
||||
set -e
|
||||
python3 assets/generate-logo.py "${GITCOMMIT}"
|
||||
mkdir -p "${_SIMPLE_INIT}/build"
|
||||
bash "${_SIMPLE_INIT}/scripts/gen-rootfs-source.sh" \
|
||||
"${_SIMPLE_INIT}" \
|
||||
"${_SIMPLE_INIT}/build"
|
||||
if [ "${DEVICE}" == "all" ]
|
||||
then E=0
|
||||
for i in "${DEVICES[@]}"
|
||||
|
@ -14,6 +14,7 @@
|
||||
#
|
||||
|
||||
!include MdePkg/MdeLibs.dsc.inc
|
||||
!include sdm845Pkg/Library/SimpleInit/SimpleInit.inc
|
||||
|
||||
[LibraryClasses.common]
|
||||
!if $(TARGET) == RELEASE
|
||||
|
@ -572,6 +572,10 @@ APRIORI DXE {
|
||||
INF MdeModulePkg/Application/UiApp/UiApp.inf
|
||||
INF sdm845Pkg/Drivers/LogoDxe/LogoDxe.inf
|
||||
|
||||
#
|
||||
# Simple Init GUI
|
||||
#
|
||||
INF src/main/SimpleInitMain.inf
|
||||
|
||||
[FV.FVMAIN_COMPACT]
|
||||
FvAlignment = 8
|
||||
|
1
sdm845Pkg/Library/SimpleInit
Submodule
1
sdm845Pkg/Library/SimpleInit
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 02b63b617ba4490ade4dcbfad30f4b0369394a46
|
Loading…
Reference in New Issue
Block a user