vendor_gapps/build/main.mk
Paul Keith 251da7189e Fix arch checks
Some devices have a 32-bit userspace but a 64-bit kernel. These
devices need to have 32-bit gapps, not 64-bit ones. To fix this,
switch to getting arch from ro.bionic.arch instead of uname -m.
Additionally, remove the nice_arch function as it makes debugging
issues more difficult when the nice arch matches but the underlying
values don't line up.
2023-08-07 17:43:10 +02:00

27 lines
561 B
Makefile

# build paths
TOPDIR := .
BUILD_SYSTEM := $(TOPDIR)/build
BUILD_GAPPS := $(BUILD_SYSTEM)/gapps.sh
OUTDIR := $(TOPDIR)/out
LOG_BUILD := /tmp/gapps_log
distclean:
@rm -fr $(OUTDIR)
@echo "Output removed! Ready for a clean build"
gapps_arm:
@echo "Compiling GApps for arm..."
@bash $(BUILD_GAPPS) arm 2>&1
gapps_arm64:
@echo "Compiling GApps for arm64..."
@bash $(BUILD_GAPPS) arm64 2>&1
gapps_x86:
@echo "Compiling GApps for x86..."
@bash $(BUILD_GAPPS) x86 2>&1
gapps_x86_64:
@echo "Compiling GApps for x86_64..."
@bash $(BUILD_GAPPS) x86_64 2>&1