You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
162 lines
4.9 KiB
162 lines
4.9 KiB
#
|
|
# set up linux environment for other makefiles
|
|
#
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# cst-nevis
|
|
ifeq ($(BOXFAMILY), nevis)
|
|
KERNEL_VER = 2.6.34.13
|
|
KERNEL_TMP = linux-$(KERNEL_VER)
|
|
KERNEL_SOURCE = git
|
|
KERNEL_URL = $(EMPTY)
|
|
|
|
KERNEL_BRANCH = ni/linux-2.6.34.15
|
|
KERNEL_DTB = $(EMPTY)
|
|
|
|
# cst-apollo/cst-kronos
|
|
else ifeq ($(BOXFAMILY), $(filter $(BOXFAMILY), apollo kronos))
|
|
KERNEL_VER = 3.10.93
|
|
KERNEL_TMP = linux-$(KERNEL_VER)
|
|
KERNEL_SOURCE = git
|
|
KERNEL_URL = $(EMPTY)
|
|
|
|
KERNEL_BRANCH = ni/linux-3.10.108
|
|
ifeq ($(BOXFAMILY), apollo)
|
|
KERNEL_DTB = $(SOURCE_DIR)/$(NI-DRIVERS-BIN)/$(BOXTYPE)/$(DRIVERS_DIR)/kernel-dtb/hd849x.dtb
|
|
else ifeq ($(BOXFAMILY), kronos)
|
|
KERNEL_DTB = $(SOURCE_DIR)/$(NI-DRIVERS-BIN)/$(BOXTYPE)/$(DRIVERS_DIR)/kernel-dtb/en75x1.dtb
|
|
endif
|
|
|
|
# arm-hd51
|
|
else ifeq ($(BOXFAMILY), bcm7251s)
|
|
KERNEL_VER = 4.10.12
|
|
KERNEL_TMP = linux-$(KERNEL_VER)
|
|
KERNEL_SOURCE = git
|
|
KERNEL_URL = $(EMPTY)
|
|
|
|
KERNEL_BRANCH = ni/linux-$(KERNEL_VER)
|
|
KERNEL_DTB = $(BUILD_TMP)/$(KERNEL_OBJ)/arch/$(BOXARCH)/boot/dts/bcm7445-bcm97445svmb.dtb
|
|
|
|
# arm-vusolo4k
|
|
else ifeq ($(BOXFAMILY), bcm7376)
|
|
KERNEL_VER = 3.14.28-1.8
|
|
KERNEL_TMP = linux
|
|
KERNEL_SOURCE = stblinux-3.14-1.8.tar.bz2
|
|
KERNEL_URL = http://archive.vuplus.com/download/kernel
|
|
|
|
KERNEL_PATCH = $(VUSOLO4K_PATCH)
|
|
|
|
KERNEL_BRANCH = $(EMPTY)
|
|
KERNEL_DTB = $(EMPTY)
|
|
|
|
VMLINUZ_INITRD_VER = 20190911
|
|
VMLINUZ_INITRD_SOURCE = vmlinuz-initrd_$(BOXMODEL)_$(VMLINUZ_INITRD_VER).tar.gz
|
|
VMLINUZ_INITRD_URL = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads
|
|
VMLINUZ_INITRD = vmlinuz-initrd-7366c0
|
|
|
|
# arm-vuduo4k
|
|
else ifeq ($(BOXFAMILY), bcm7278)
|
|
KERNEL_VER = 4.1.45-1.17
|
|
KERNEL_TMP = linux
|
|
KERNEL_SOURCE = stblinux-4.1-1.17.tar.bz2
|
|
KERNEL_URL = http://archive.vuplus.com/download/kernel
|
|
|
|
KERNEL_PATCH = $(VUDUO4K_PATCH)
|
|
|
|
KERNEL_BRANCH = $(EMPTY)
|
|
KERNEL_DTB = $(EMPTY)
|
|
|
|
VMLINUZ_INITRD_VER = 20190911
|
|
VMLINUZ_INITRD_SOURCE = vmlinuz-initrd_$(BOXMODEL)_$(VMLINUZ_INITRD_VER).tar.gz
|
|
VMLINUZ_INITRD_URL = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads
|
|
VMLINUZ_INITRD = vmlinuz-initrd-7278b1
|
|
|
|
# arm-vuultimo4k
|
|
else ifeq ($(BOXFAMILY), bcm7444s)
|
|
KERNEL_VER = 3.14.28-1.12
|
|
KERNEL_TMP = linux
|
|
KERNEL_SOURCE = stblinux-3.14-1.12.tar.bz2
|
|
KERNEL_URL = http://archive.vuplus.com/download/kernel
|
|
|
|
KERNEL_PATCH = $(VUULTIMO4K_PATCH)
|
|
|
|
KERNEL_BRANCH = $(EMPTY)
|
|
KERNEL_DTB = $(EMPTY)
|
|
|
|
VMLINUZ_INITRD_VER = 20190911
|
|
VMLINUZ_INITRD_SOURCE = vmlinuz-initrd_$(BOXMODEL)_$(VMLINUZ_INITRD_VER).tar.gz
|
|
VMLINUZ_INITRD_URL = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads
|
|
VMLINUZ_INITRD = vmlinuz-initrd-7445d0
|
|
|
|
# arm-vuzero4k
|
|
else ifeq ($(BOXFAMILY), bcm72604)
|
|
KERNEL_VER = 4.1.20-1.9
|
|
KERNEL_TMP = linux
|
|
KERNEL_SOURCE = stblinux-4.1-1.9.tar.bz2
|
|
KERNEL_URL = http://archive.vuplus.com/download/kernel
|
|
|
|
KERNEL_PATCH = $(VUZERO4K_PATCH)
|
|
|
|
KERNEL_BRANCH = $(EMPTY)
|
|
KERNEL_DTB = $(EMPTY)
|
|
|
|
VMLINUZ_INITRD_VER = 20190911
|
|
VMLINUZ_INITRD_SOURCE = vmlinuz-initrd_$(BOXMODEL)_$(VMLINUZ_INITRD_VER).tar.gz
|
|
VMLINUZ_INITRD_URL = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads
|
|
VMLINUZ_INITRD = vmlinuz-initrd-7260a0
|
|
|
|
# mips-vuduo
|
|
else ifeq ($(BOXFAMILY), bcm7335)
|
|
KERNEL_VER = 3.9.6
|
|
KERNEL_TMP = linux
|
|
KERNEL_SOURCE = stblinux-$(KERNEL_VER).tar.bz2
|
|
KERNEL_URL = http://archive.vuplus.com/download/kernel
|
|
|
|
KERNEL_PATCH = $(VUDUO_PATCH)
|
|
|
|
KERNEL_BRANCH = $(EMPTY)
|
|
KERNEL_DTB = $(EMPTY)
|
|
|
|
endif
|
|
|
|
KERNEL_OBJ = linux-$(KERNEL_VER)-obj
|
|
KERNEL_MODULES = linux-$(KERNEL_VER)-modules
|
|
|
|
KERNEL_NAME = NI $(shell echo $(BOXFAMILY) | sed 's/.*/\u&/') Kernel
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
KERNEL_MODULES_DIR = $(BUILD_TMP)/$(KERNEL_MODULES)/lib/modules/$(KERNEL_VER)
|
|
KERNEL_CONFIG = $(CONFIGS)/kernel-$(KERNEL_VER)-$(BOXFAMILY).config
|
|
|
|
KERNEL_UIMAGE = $(BUILD_TMP)/$(KERNEL_OBJ)/arch/$(BOXARCH)/boot/Image
|
|
KERNEL_ZIMAGE = $(BUILD_TMP)/$(KERNEL_OBJ)/arch/$(BOXARCH)/boot/zImage
|
|
KERNEL_ZIMAGE_DTB = $(BUILD_TMP)/$(KERNEL_OBJ)/arch/$(BOXARCH)/boot/zImage_dtb
|
|
KERNEL_VMLINUX = $(BUILD_TMP)/$(KERNEL_OBJ)/vmlinux
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
KERNEL_MAKEVARS := \
|
|
ARCH=$(BOXARCH) \
|
|
CROSS_COMPILE=$(TARGET_CROSS) \
|
|
INSTALL_MOD_PATH=$(BUILD_TMP)/$(KERNEL_MODULES) \
|
|
LOCALVERSION= \
|
|
O=$(BUILD_TMP)/$(KERNEL_OBJ)
|
|
|
|
# Compatibility variables
|
|
KERNEL_MAKEVARS += \
|
|
KVER=$(KERNEL_VER) \
|
|
KSRC=$(BUILD_TMP)/$(KERNEL_TMP)
|
|
|
|
ifeq ($(BOXFAMILY), $(filter $(BOXFAMILY), bcm7335)) # mips-vuduo
|
|
KERNEL_IMAGE = vmlinux
|
|
else
|
|
KERNEL_IMAGE = zImage
|
|
endif
|
|
|
|
KERNEL_MAKEOPTS = $(KERNEL_IMAGE) modules
|
|
|
|
# build also the kernel-dtb for arm-hd51
|
|
ifeq ($(BOXFAMILY), $(filter $(BOXFAMILY), bcm7251s))
|
|
KERNEL_MAKEOPTS += $(notdir $(KERNEL_DTB))
|
|
endif
|
|
|