mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-21 16:39:39 +00:00
committed by
Christian Helmuth
parent
bb06e8451a
commit
a67bc59686
8
repos/dde_linux/src/virt_linux/arm_v6/target.inc
Normal file
8
repos/dde_linux/src/virt_linux/arm_v6/target.inc
Normal file
@ -0,0 +1,8 @@
|
||||
#
|
||||
# Linux architecture specific kernel configuration
|
||||
#
|
||||
|
||||
LX_ENABLE += ARCH_MULTI_V6
|
||||
|
||||
# do not generate thumb instructions
|
||||
LX_DISABLE += THUMB2_KERNEL DEBUG_PREEMPT
|
41
repos/dde_linux/src/virt_linux/arm_v6/target.mk
Normal file
41
repos/dde_linux/src/virt_linux/arm_v6/target.mk
Normal file
@ -0,0 +1,41 @@
|
||||
TARGET := arm_virt_linux
|
||||
REQUIRES := arm_v6
|
||||
|
||||
CUSTOM_TARGET_DEPS := kernel_build.phony
|
||||
|
||||
LX_DIR := $(call select_from_ports,linux)/src/linux
|
||||
PWD := $(shell pwd)
|
||||
|
||||
# options for Linux kernel build to not depend on current time, user and host
|
||||
LX_MK_REPRODUCIBLE = KBUILD_BUILD_TIMESTAMP=no_timestamp KBUILD_BUILD_USER=genode KBUILD_BUILD_HOST=genode
|
||||
LX_MK_ARGS = ARCH=arm CROSS_COMPILE=$(CROSS_DEV_PREFIX) CC=$(CC) $(LX_MK_REPRODUCIBLE)
|
||||
|
||||
#
|
||||
# Linux kernel configuration
|
||||
#
|
||||
# Start with 'make tinyconfig', enable/disable options via 'scripts/config',
|
||||
# and resolve config dependencies via 'make olddefconfig'.
|
||||
#
|
||||
|
||||
# define 'LX_ENABLE' and 'LX_DISABLE'
|
||||
include $(REP_DIR)/src/virt_linux/arm_v6/target.inc
|
||||
include $(REP_DIR)/src/virt_linux/target.inc
|
||||
|
||||
# filter for make output of kernel build system
|
||||
BUILD_OUTPUT_FILTER = 2>&1 | sed "s/^/ [Linux] /"
|
||||
|
||||
kernel_config.tag:
|
||||
$(MSG_CONFIG)Linux
|
||||
$(VERBOSE)$(MAKE) -C $(LX_DIR) O=$(PWD) $(LX_MK_ARGS) tinyconfig $(BUILD_OUTPUT_FILTER)
|
||||
$(VERBOSE)$(LX_DIR)/scripts/config --file $(PWD)/.config $(addprefix --enable ,$(LX_ENABLE))
|
||||
$(VERBOSE)$(LX_DIR)/scripts/config --file $(PWD)/.config $(addprefix --disable ,$(LX_DISABLE))
|
||||
$(VERBOSE)$(MAKE) $(LX_MK_ARGS) olddefconfig $(BUILD_OUTPUT_FILTER)
|
||||
$(VERBOSE)$(MAKE) $(LX_MK_ARGS) prepare $(BUILD_OUTPUT_FILTER)
|
||||
$(VERBOSE)touch $@
|
||||
|
||||
# update Linux kernel config on makefile changes
|
||||
kernel_config.tag: $(MAKEFILE_LIST)
|
||||
|
||||
kernel_build.phony: kernel_config.tag
|
||||
$(MSG_BUILD)Linux
|
||||
$(VERBOSE)$(MAKE) $(LX_MK_ARGS) $(BUILD_OUTPUT_FILTER)
|
Reference in New Issue
Block a user