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.
252 lines
8.3 KiB
252 lines
8.3 KiB
#
|
|
# set up linux environment for other makefiles
|
|
#
|
|
# -----------------------------------------------------------------------------
|
|
|
|
ifeq ($(BOXMODEL),nevis)
|
|
KERNEL_VERSION = 2.6.34.13
|
|
KERNEL_DIR = linux-$(KERNEL_VERSION)
|
|
KERNEL_SOURCE = git
|
|
KERNEL_SITE = $(empty)
|
|
|
|
KERNEL_BRANCH = ni/linux-2.6.34.15
|
|
KERNEL_DTB = $(empty)
|
|
|
|
else ifeq ($(BOXMODEL),$(filter $(BOXMODEL),apollo shiner kronos kronos_v2))
|
|
KERNEL_VERSION = 3.10.93
|
|
KERNEL_DIR = linux-$(KERNEL_VERSION)
|
|
KERNEL_SOURCE = git
|
|
KERNEL_SITE = $(empty)
|
|
|
|
KERNEL_BRANCH = ni/linux-3.10.108
|
|
ifeq ($(BOXMODEL),$(filter $(BOXMODEL),apollo shiner))
|
|
KERNEL_DTB = $(SOURCE_DIR)/$(NI_DRIVERS_BIN)/$(DRIVERS_BIN_DIR)/kernel-dtb/hd849x.dtb
|
|
KERNEL_CONFIG = $(PKG_FILES_DIR)/kernel-apollo.defconfig
|
|
else
|
|
KERNEL_DTB = $(SOURCE_DIR)/$(NI_DRIVERS_BIN)/$(DRIVERS_BIN_DIR)/kernel-dtb/en75x1.dtb
|
|
KERNEL_CONFIG = $(PKG_FILES_DIR)/kernel-kronos.defconfig
|
|
endif
|
|
|
|
else ifeq ($(BOXMODEL),$(filter $(BOXMODEL),hd51 bre2ze4k h7 e4hdultra protek4k))
|
|
KERNEL_VERSION = 4.10.12
|
|
KERNEL_DIR = linux-$(KERNEL_VERSION)
|
|
KERNEL_SOURCE = linux-$(KERNEL_VERSION)-arm.tar.gz
|
|
KERNEL_SITE = http://downloads.mutant-digital.net
|
|
|
|
KERNEL_BRANCH = $(empty)
|
|
KERNEL_DTB = $(KERNEL_OBJ_DIR)/arch/$(TARGET_ARCH)/boot/dts/bcm7445-bcm97445svmb.dtb
|
|
ifeq ($(BOXMODEL),$(filter $(BOXMODEL),e4hdultra protek4k))
|
|
KERNEL_CONFIG = $(PKG_FILES_DIR)/kernel-hd5x-e4hdultra.defconfig
|
|
else
|
|
KERNEL_CONFIG = $(PKG_FILES_DIR)/kernel-hd5x.defconfig
|
|
endif
|
|
|
|
BOOT_PARTITION = 1
|
|
|
|
else ifeq ($(BOXMODEL),$(filter $(BOXMODEL),hd60))
|
|
KERNEL_VERSION = 4.4.35
|
|
KERNEL_DATE = 20200219
|
|
KERNEL_DIR = linux-$(KERNEL_VERSION)
|
|
KERNEL_SOURCE = linux-$(KERNEL_VERSION)-$(KERNEL_DATE)-arm.tar.gz
|
|
KERNEL_SITE = http://source.mynonpublic.com/gfutures
|
|
|
|
KERNEL_BRANCH = $(empty)
|
|
KERNEL_DTB = $(KERNEL_OBJ_DIR)/arch/$(TARGET_ARCH)/boot/dts/hi3798mv200.dtb
|
|
KERNEL_CONFIG = $(PKG_FILES_DIR)/kernel-hd6x.defconfig
|
|
|
|
BOOT_PARTITION = 4
|
|
|
|
else ifeq ($(BOXMODEL),$(filter $(BOXMODEL),hd61))
|
|
KERNEL_VERSION = 4.4.35
|
|
KERNEL_DATE = 20181228
|
|
KERNEL_DIR = linux-$(KERNEL_VERSION)
|
|
KERNEL_SOURCE = linux-$(KERNEL_VERSION)-$(KERNEL_DATE)-arm.tar.gz
|
|
KERNEL_SITE = http://source.mynonpublic.com/gfutures
|
|
|
|
KERNEL_BRANCH = $(empty)
|
|
KERNEL_DTB = $(KERNEL_OBJ_DIR)/arch/$(TARGET_ARCH)/boot/dts/hi3798mv200.dtb
|
|
KERNEL_CONFIG = $(PKG_FILES_DIR)/kernel-hd6x.defconfig
|
|
|
|
BOOT_PARTITION = 4
|
|
|
|
else ifeq ($(BOXMODEL),$(filter $(BOXMODEL),multibox multiboxse))
|
|
KERNEL_VERSION = 4.4.35
|
|
KERNEL_DATE = 20200219
|
|
KERNEL_DIR = linux-$(KERNEL_VERSION)
|
|
KERNEL_SOURCE = linux-$(KERNEL_VERSION)-$(KERNEL_DATE)-arm.tar.gz
|
|
KERNEL_SITE = http://source.mynonpublic.com/maxytec
|
|
|
|
KERNEL_BRANCH = $(empty)
|
|
KERNEL_DTB = $(KERNEL_OBJ_DIR)/arch/$(TARGET_ARCH)/boot/dts/hi3798mv200.dtb
|
|
KERNEL_CONFIG = $(PKG_FILES_DIR)/kernel-hd6x.defconfig
|
|
|
|
BOOT_PARTITION = 4
|
|
|
|
else ifeq ($(BOXMODEL),vusolo4k)
|
|
KERNEL_VERSION = 3.14.28-1.8
|
|
KERNEL_DIR = linux
|
|
KERNEL_SOURCE = stblinux-3.14-1.8.tar.bz2
|
|
KERNEL_SITE = http://code.vuplus.com/download/release/kernel
|
|
|
|
KERNEL_BRANCH = $(empty)
|
|
KERNEL_DTB = $(empty)
|
|
|
|
VMLINUZ_INITRD_VERSION = 20221006
|
|
VMLINUZ_INITRD_SOURCE = vmlinuz-initrd_$(BOXMODEL)_$(VMLINUZ_INITRD_VERSION).tar.gz
|
|
VMLINUZ_INITRD_SITE = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads
|
|
VMLINUZ_INITRD = vmlinuz-initrd-7366c0
|
|
|
|
BOOT_PARTITION = 1
|
|
|
|
else ifeq ($(BOXMODEL),vuduo4k)
|
|
KERNEL_VERSION = 4.1.45-1.17
|
|
KERNEL_DIR = linux
|
|
KERNEL_SOURCE = stblinux-4.1-1.17.tar.bz2
|
|
KERNEL_SITE = http://code.vuplus.com/download/release/kernel
|
|
|
|
KERNEL_BRANCH = $(empty)
|
|
KERNEL_DTB = $(empty)
|
|
|
|
VMLINUZ_INITRD_VERSION = 20221006
|
|
VMLINUZ_INITRD_SOURCE = vmlinuz-initrd_$(BOXMODEL)_$(VMLINUZ_INITRD_VERSION).tar.gz
|
|
VMLINUZ_INITRD_SITE = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads
|
|
VMLINUZ_INITRD = vmlinuz-initrd-7278b1
|
|
|
|
BOOT_PARTITION = 6
|
|
|
|
else ifeq ($(BOXMODEL),vuduo4kse)
|
|
KERNEL_VERSION = 4.1.45-1.17
|
|
KERNEL_DIR = linux
|
|
KERNEL_SOURCE = stblinux-4.1-1.17.tar.bz2
|
|
KERNEL_SITE = http://code.vuplus.com/download/release/kernel
|
|
|
|
KERNEL_BRANCH = $(empty)
|
|
KERNEL_DTB = $(empty)
|
|
|
|
VMLINUZ_INITRD_VERSION = 20221006
|
|
VMLINUZ_INITRD_SOURCE = vmlinuz-initrd_$(BOXMODEL)_$(VMLINUZ_INITRD_VERSION).tar.gz
|
|
VMLINUZ_INITRD_SITE = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads
|
|
VMLINUZ_INITRD = vmlinuz-initrd-7445d0
|
|
|
|
BOOT_PARTITION = 6
|
|
|
|
else ifeq ($(BOXMODEL),vuultimo4k)
|
|
KERNEL_VERSION = 3.14.28-1.12
|
|
KERNEL_DIR = linux
|
|
KERNEL_SOURCE = stblinux-3.14-1.12.tar.bz2
|
|
KERNEL_SITE = http://code.vuplus.com/download/release/kernel
|
|
|
|
KERNEL_BRANCH = $(empty)
|
|
KERNEL_DTB = $(empty)
|
|
|
|
VMLINUZ_INITRD_VERSION = 20221006
|
|
VMLINUZ_INITRD_SOURCE = vmlinuz-initrd_$(BOXMODEL)_$(VMLINUZ_INITRD_VERSION).tar.gz
|
|
VMLINUZ_INITRD_SITE = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads
|
|
VMLINUZ_INITRD = vmlinuz-initrd-7445d0
|
|
|
|
BOOT_PARTITION = 1
|
|
|
|
else ifeq ($(BOXMODEL),vuzero4k)
|
|
KERNEL_VERSION = 4.1.20-1.9
|
|
KERNEL_DIR = linux
|
|
KERNEL_SOURCE = stblinux-4.1-1.9.tar.bz2
|
|
KERNEL_SITE = http://code.vuplus.com/download/release/kernel
|
|
|
|
KERNEL_BRANCH = $(empty)
|
|
KERNEL_DTB = $(empty)
|
|
|
|
VMLINUZ_INITRD_VERSION = 20221006
|
|
VMLINUZ_INITRD_SOURCE = vmlinuz-initrd_$(BOXMODEL)_$(VMLINUZ_INITRD_VERSION).tar.gz
|
|
VMLINUZ_INITRD_SITE = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads
|
|
VMLINUZ_INITRD = vmlinuz-initrd-7260a0
|
|
|
|
BOOT_PARTITION = 4
|
|
|
|
else ifeq ($(BOXMODEL),vuuno4k)
|
|
KERNEL_VERSION = 3.14.28-1.12
|
|
KERNEL_DIR = linux
|
|
KERNEL_SOURCE = stblinux-3.14-1.12.tar.bz2
|
|
KERNEL_SITE = http://code.vuplus.com/download/release/kernel
|
|
|
|
KERNEL_BRANCH = $(empty)
|
|
KERNEL_DTB = $(empty)
|
|
|
|
VMLINUZ_INITRD_VERSION = 20221006
|
|
VMLINUZ_INITRD_SOURCE = vmlinuz-initrd_$(BOXMODEL)_$(VMLINUZ_INITRD_VERSION).tar.gz
|
|
VMLINUZ_INITRD_SITE = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads
|
|
VMLINUZ_INITRD = vmlinuz-initrd-7439b0
|
|
|
|
BOOT_PARTITION = 1
|
|
|
|
else ifeq ($(BOXMODEL),vuuno4kse)
|
|
KERNEL_VERSION = 4.1.20-1.9
|
|
KERNEL_DIR = linux
|
|
KERNEL_SOURCE = stblinux-4.1-1.9.tar.bz2
|
|
KERNEL_SITE = http://code.vuplus.com/download/release/kernel
|
|
|
|
KERNEL_BRANCH = $(empty)
|
|
KERNEL_DTB = $(empty)
|
|
|
|
VMLINUZ_INITRD_VERSION = 20221006
|
|
VMLINUZ_INITRD_SOURCE = vmlinuz-initrd_$(BOXMODEL)_$(VMLINUZ_INITRD_VERSION).tar.gz
|
|
VMLINUZ_INITRD_SITE = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads
|
|
VMLINUZ_INITRD = vmlinuz-initrd-7439b0
|
|
|
|
BOOT_PARTITION = 1
|
|
|
|
else ifeq ($(BOXMODEL),vuduo)
|
|
KERNEL_VERSION = 3.9.6
|
|
KERNEL_DIR = linux
|
|
KERNEL_SOURCE = stblinux-$(KERNEL_VERSION).tar.bz2
|
|
KERNEL_SITE = http://code.vuplus.com/download/release/kernel
|
|
|
|
KERNEL_BRANCH = $(empty)
|
|
KERNEL_DTB = $(empty)
|
|
|
|
endif
|
|
|
|
KERNEL_PATCH = $($(call UPPERCASE,$(BOXMODEL))_PATCH)
|
|
|
|
KERNEL_OBJ = linux-$(KERNEL_VERSION)-obj
|
|
KERNEL_OBJ_DIR = $(BUILD_DIR)/$(KERNEL_OBJ)
|
|
KERNEL_MODULES = linux-$(KERNEL_VERSION)-modules
|
|
KERNEL_MODULES_DIR = $(BUILD_DIR)/$(KERNEL_MODULES)
|
|
KERNEL_HEADERS = linux-$(KERNEL_VERSION)-headers
|
|
KERNEL_HEADERS_DIR = $(BUILD_DIR)/$(KERNEL_HEADERS)
|
|
|
|
KERNEL_CONFIG ?= $(PKG_FILES_DIR)/kernel-$(BOXMODEL).defconfig
|
|
KERNEL_NAME = NI $(shell echo $(BOXFAMILY) | sed 's/.*/\u&/') Kernel
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
KERNEL_modulesdir = $(KERNEL_MODULES_DIR)/lib/modules/$(KERNEL_VERSION)
|
|
|
|
ifeq ($(BOXMODEL),nevis)
|
|
KERNEL_UIMAGE = $(KERNEL_OBJ_DIR)/arch/$(TARGET_ARCH)/boot/Image
|
|
else
|
|
KERNEL_UIMAGE = $(KERNEL_OBJ_DIR)/arch/$(TARGET_ARCH)/boot/uImage
|
|
endif
|
|
KERNEL_ZIMAGE = $(KERNEL_OBJ_DIR)/arch/$(TARGET_ARCH)/boot/zImage
|
|
KERNEL_ZIMAGE_DTB = $(KERNEL_OBJ_DIR)/arch/$(TARGET_ARCH)/boot/zImage_dtb
|
|
KERNEL_VMLINUX = $(KERNEL_OBJ_DIR)/vmlinux
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
ifeq ($(BOXMODEL),$(filter $(BOXMODEL),vuduo))
|
|
KERNEL_IMAGE = vmlinux
|
|
else ifeq ($(BOXMODEL),$(filter $(BOXMODEL),hd60 hd61 multibox multiboxse))
|
|
KERNEL_IMAGE = uImage
|
|
else
|
|
KERNEL_IMAGE = zImage
|
|
endif
|
|
|
|
KERNEL_MAKE_TARGETS = $(KERNEL_IMAGE)
|
|
|
|
# build also the kernel-dtb for arm-hd5x and arm-hd6x
|
|
ifeq ($(BOXMODEL),$(filter $(BOXMODEL),hd51 bre2ze4k h7 e4hdultra protek4k hd60 hd61 multibox multiboxse))
|
|
KERNEL_MAKE_TARGETS += $(notdir $(KERNEL_DTB))
|
|
endif
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
KERNEL_TARBALL = $(BUILD_DIR)/linux-$(KERNEL_VERSION).tar
|
|
|