parent
abcb0f62d7
commit
d1e10e939d
@ -0,0 +1 @@
|
||||
dummy
|
@ -0,0 +1,38 @@
|
||||
LICENSE := GPL
|
||||
VERSION := 3.9
|
||||
DOWNLOADS := dwc_otg.git linux.archive linux_lxip.archive
|
||||
SRC_DIR := src/lib/dde_linux
|
||||
|
||||
#
|
||||
# The git checkout checks for the existence of SRC_DIR, which is created by the
|
||||
# Linux extraction, therefore make sure to checkout the GIT sources first.
|
||||
#
|
||||
linux.archive linux_lxip.archive: dwc_otg.git
|
||||
|
||||
#
|
||||
# USB and IP stack sources
|
||||
#
|
||||
URL(linux) := http://www.kernel.org/pub/linux/kernel/v3.x/linux-$(VERSION).tar.gz
|
||||
SHA(linux) := 7979f0d670838d0552c7ede5cc06497b81dcd812
|
||||
DIR(linux) := $(SRC_DIR)
|
||||
TAR_OPT(linux) := --strip-components=1 --files-from $(REP_DIR)/files.list
|
||||
|
||||
#
|
||||
# IP stack headers
|
||||
#
|
||||
URL(linux_lxip) := ${URL(linux)}
|
||||
SHA(linux_lxip) := ${SHA(linux)}
|
||||
DIR(linux_lxip) := $(SRC_DIR)/lxip
|
||||
TAR_OPT(linux_lxip) := --strip-components=1 --files-from $(REP_DIR)/lxip_header.list
|
||||
|
||||
#
|
||||
# Raspberry Pi USB controller
|
||||
#
|
||||
URL(dwc_otg) := https://github.com/nfeske/dwc_otg.git
|
||||
REV(dwc_otg) := r1
|
||||
DIR(dwc_otg) := $(SRC_DIR)/drivers/usb/host/dwc_otg
|
||||
|
||||
PATCHES := patches/*.patch
|
||||
PATCH_OPT = -p1 -d$(SRC_DIR)
|
||||
|
||||
# vi: set ft=make :
|
@ -1,33 +1 @@
|
||||
#
|
||||
# Add generic libc headers to standard include search paths
|
||||
#
|
||||
REP_INC_DIR += include/libc
|
||||
|
||||
#
|
||||
# Add platform-specific libc headers to standard include search paths
|
||||
#
|
||||
ifeq ($(filter-out $(SPECS),x86),)
|
||||
ifeq ($(filter-out $(SPECS),32bit),)
|
||||
LIBC_REP_INC_DIR = include/libc-i386
|
||||
endif # 32bit
|
||||
|
||||
ifeq ($(filter-out $(SPECS),64bit),)
|
||||
LIBC_REP_INC_DIR = include/libc-amd64
|
||||
endif # 32bit
|
||||
LIBC_REP_INC_DIR += include/libc-x86
|
||||
endif # x86
|
||||
|
||||
ifeq ($(filter-out $(SPECS),arm),)
|
||||
LIBC_REP_INC_DIR = include/libc-arm
|
||||
endif # ARM
|
||||
|
||||
#
|
||||
# If we found no valid include path for the configured target platform,
|
||||
# we have to prevent the build system from building the target. This is
|
||||
# done by adding an artificial requirement.
|
||||
#
|
||||
ifeq ($(LIBC_REP_INC_DIR),)
|
||||
REQUIRES += libc_support_for_your_target_platform
|
||||
endif
|
||||
|
||||
REP_INC_DIR += $(LIBC_REP_INC_DIR)
|
||||
include $(call select_from_repositories,lib/import/import-libc.mk)
|
||||
|
Loading…
Reference in New Issue