mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-26 07:13:55 +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)
|
OS ?= $(shell sh $(MOD_SCRIPT_DIR)/get_os.sh)
|
||||||
|
|
||||||
ifndef ARCH
|
ifndef ARCH
|
||||||
ifeq ($(shell uname -m),x86_64)
|
ifeq ($(shell uname -m),armv7l)
|
||||||
ARCH = x86_64
|
ARCH = armv7l
|
||||||
else
|
else
|
||||||
ARCH_32 = i586
|
ifeq ($(shell uname -m),x86_64)
|
||||||
ARCH = $(ARCH_32)
|
ARCH = x86_64
|
||||||
endif
|
else
|
||||||
|
ARCH_32 = i586
|
||||||
|
ARCH = $(ARCH_32)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(ARCH),$(ARCH_32))
|
ifeq ($(ARCH),$(ARCH_32))
|
||||||
|
|
@ -108,6 +112,12 @@ PROJECT_CPPFLAGS += -m32
|
||||||
PROJECT_LDFLAGS += -m32
|
PROJECT_LDFLAGS += -m32
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(ARCH),armv7l)
|
||||||
|
PROJECT_CFLAGS += -fPIC
|
||||||
|
PROJECT_CPPFLAGS += -fPIC
|
||||||
|
PROJECT_LDFLAGS +=
|
||||||
|
endif
|
||||||
|
|
||||||
FULL_NAME = $(shell id -nu | xargs getent passwd | cut -d: -f5)
|
FULL_NAME = $(shell id -nu | xargs getent passwd | cut -d: -f5)
|
||||||
DEVELOPMENT ?= $(shell echo $(VERSION) | grep -q 'dev' && echo true)
|
DEVELOPMENT ?= $(shell echo $(VERSION) | grep -q 'dev' && echo true)
|
||||||
USE_PROJECT_LIB ?= true
|
USE_PROJECT_LIB ?= true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue