mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
defs.mk: Support ARCH armv7l
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
64e5a6d2e0
commit
97e0d5706a
1 changed files with 16 additions and 6 deletions
22
make/defs.mk
22
make/defs.mk
|
|
@ -94,12 +94,16 @@ TARGET ?= Linux
|
|||
OS ?= $(shell sh $(MOD_SCRIPT_DIR)/get_os.sh)
|
||||
|
||||
ifndef ARCH
|
||||
ifeq ($(shell uname -m),x86_64)
|
||||
ARCH = x86_64
|
||||
else
|
||||
ARCH_32 = i586
|
||||
ARCH = $(ARCH_32)
|
||||
endif
|
||||
ifeq ($(shell uname -m),armv7l)
|
||||
ARCH = armv7l
|
||||
else
|
||||
ifeq ($(shell uname -m),x86_64)
|
||||
ARCH = x86_64
|
||||
else
|
||||
ARCH_32 = i586
|
||||
ARCH = $(ARCH_32)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(ARCH),$(ARCH_32))
|
||||
|
|
@ -108,6 +112,12 @@ PROJECT_CPPFLAGS += -m32
|
|||
PROJECT_LDFLAGS += -m32
|
||||
endif
|
||||
|
||||
ifeq ($(ARCH),armv7l)
|
||||
PROJECT_CFLAGS += -fPIC
|
||||
PROJECT_CPPFLAGS += -fPIC
|
||||
PROJECT_LDFLAGS +=
|
||||
endif
|
||||
|
||||
FULL_NAME = $(shell id -nu | xargs getent passwd | cut -d: -f5)
|
||||
DEVELOPMENT ?= $(shell echo $(VERSION) | grep -q 'dev' && echo true)
|
||||
USE_PROJECT_LIB ?= true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue