summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/tty/serial/8250/Makefile
blob: e177f8681adad8831a1bf7e6935664d28e9b001e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#
# Makefile for the 8250 serial device drivers.
#

obj-$(CONFIG_SERIAL_8250)		+= 8250.o 8250_base.o
8250-y					:= 8250_core.o
8250-$(CONFIG_SERIAL_8250_PNP)		+= 8250_pnp.o
8250_base-y				:= 8250_port.o
8250_base-$(CONFIG_SERIAL_8250_DMA)	+= 8250_dma.o
obj-$(CONFIG_SERIAL_8250_GSC)		+= 8250_gsc.o
obj-$(CONFIG_SERIAL_8250_PCI)		+= 8250_pci.o
obj-$(CONFIG_SERIAL_8250_HP300)		+= 8250_hp300.o
obj-$(CONFIG_SERIAL_8250_CS)		+= serial_cs.o
obj-$(CONFIG_SERIAL_8250_ACORN)		+= 8250_acorn.o
obj-$(CONFIG_SERIAL_8250_CONSOLE)	+= 8250_early.o
obj-$(CONFIG_SERIAL_8250_FOURPORT)	+= 8250_fourport.o
obj-$(CONFIG_SERIAL_8250_ACCENT)	+= 8250_accent.o
obj-$(CONFIG_SERIAL_8250_BOCA)		+= 8250_boca.o
obj-$(CONFIG_SERIAL_8250_EXAR_ST16C554)	+= 8250_exar_st16c554.o
obj-$(CONFIG_SERIAL_8250_HUB6)		+= 8250_hub6.o
obj-$(CONFIG_SERIAL_8250_FSL)		+= 8250_fsl.o
obj-$(CONFIG_SERIAL_8250_DW)		+= 8250_dw.o
obj-$(CONFIG_SERIAL_8250_EM)		+= 8250_em.o
obj-$(CONFIG_SERIAL_8250_OMAP)		+= 8250_omap.o
obj-$(CONFIG_SERIAL_8250_FINTEK)	+= 8250_fintek.o
obj-$(CONFIG_SERIAL_8250_LPC18XX)	+= 8250_lpc18xx.o
obj-$(CONFIG_SERIAL_8250_MT6577)	+= 8250_mtk.o
obj-$(CONFIG_SERIAL_8250_UNIPHIER)	+= 8250_uniphier.o
obj-$(CONFIG_SERIAL_8250_INGENIC)	+= 8250_ingenic.o
obj-$(CONFIG_SERIAL_8250_MID)		+= 8250_mid.o

CFLAGS_8250_ingenic.o += -I$(srctree)/scripts/dtc/libfdt
fault: "" ComputeHostnameFormat: type: string default: "" resources: userdata: type: OS::Heat::MultipartMime properties: parts: - config: {get_resource: compute_kernel_args} # Verify the logs on /var/log/cloud-init.log on the overcloud node compute_kernel_args: type: OS::Heat::SoftwareConfig properties: config: str_replace: template: | #!/bin/bash set -x need_reboot='false' if [ -n "$KERNEL_ARGS" ]; then sed 's/^\(GRUB_CMDLINE_LINUX=".*\)"/\1 $KERNEL_ARGS"/g' \ -i /etc/default/grub ; grub2-mkconfig -o /etc/grub2.cfg hugepage_count=$(echo $KERNEL_ARGS | \ grep -oP ' ?hugepages=\K[0-9]+') if [ -z "$hugepage_count" ]; then hugepage_count=1024 fi echo vm.hugetlb_shm_group=0 >> /usr/lib/sysctl.d/00-system.conf HPAGE_CT=$(printf "%.0f" $(echo 2.2*$hugepage_count | bc)) echo vm.max_map_count=$HPAGE_CT >> \ /usr/lib/sysctl.d/00-system.conf HPAGE_CT=$(($hugepage_count * 2 * 1024 * 1024)) echo kernel.shmmax=$HPAGE_CT >> /usr/lib/sysctl.d/00-system.conf need_reboot='true' fi if [ -n "$KVMFORNFV_KERNEL_RPM" ]; then FORMAT=$COMPUTE_HOSTNAME_FORMAT if [[ -z $FORMAT ]] ; then FORMAT="compute" ; else # Assumption: only %index% and %stackname% are # the variables in Host name format FORMAT=$(echo $FORMAT | sed 's/\%index\%//g'); FORMAT=$(echo $FORMAT | sed 's/\%stackname\%//g'); fi if [[ $(hostname) == *$FORMAT* ]] ; then yum install -y /root/$KVMFORNFV_KERNEL_RPM grub2-mkconfig -o /etc/grub2.cfg sleep 5 need_reboot='true' fi fi if [ "$need_reboot" == "true" ]; then reboot fi params: $KERNEL_ARGS: {get_param: ComputeKernelArgs} $KVMFORNFV_KERNEL_RPM: {get_param: KVMForNFVKernelRPM} $COMPUTE_HOSTNAME_FORMAT: {get_param: ComputeHostnameFormat} outputs: OS::stack_id: value: {get_resource: userdata}