M7350v1_en_gpl

This commit is contained in:
T
2024-09-09 08:52:07 +00:00
commit f9cc65cfda
65988 changed files with 26357421 additions and 0 deletions

View File

@ -0,0 +1,4 @@
# Kernel module make instructions go here.
#
obj-m := xyz_module.o
xyz_module-objs := xyzmod.o

View File

@ -0,0 +1,25 @@
#
# Rules for building kernel-tests should go in this file.
#
# replace names beginning with 'xyz' with suitable names.
xyzdir = $(prefix)
# See the automake manual for full details of this syntax.
xyz_PROGRAMS = xyzmod
# Uncomment this if your script needs to install the 'common' setup
# script from android.
dist_xyz_SCRIPTS += ../test_env_setup.sh
#-----------------------------------------------------------------------------
# Below this line is automake boilerplate. Casual users should not need
# to go below this line.
PWD := $(shell pwd)
all-local:
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
install-exec-local:
$(MAKE) -C $(KERNELDIR) M=$(PWD) INSTALL_MOD_PATH=$(DESTDIR)$(prefix) modules_install
depmod $(shell cat $(KERNELDIR)/include/config/kernel.release 2> /dev/null) -b $(DESTDIR)$(prefix)

View File

@ -0,0 +1,32 @@
/* Copyright (c) 2012, The Linux Foundation. All rights reserved.
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
/*
* A trivial example kernel module.
*/
#include <linux/init.h>
#include <linux/module.h>
static int template_init(void)
{
printk(KERN_ALERT "Hello, world!\n");
return 0;
}
static void template_exit(void)
{
printk(KERN_ALERT "Goodbye, cruel world.\n");
}
module_init(template_init);
module_exit(template_exit);
MODULE_LICENSE("GPL v2");