Changeset View
Changeset View
Standalone View
Standalone View
share/examples/drivers/make_device_driver.sh
Show First 20 Lines • Show All 109 Lines • ▼ Show 20 Lines | |||||
if [ ! -d ${TOP}/dev/${1} ]; then | if [ ! -d ${TOP}/dev/${1} ]; then | ||||
mkdir -p ${TOP}/dev/${1} | mkdir -p ${TOP}/dev/${1} | ||||
fi | fi | ||||
cat >${TOP}/dev/${1}/${1}.c <<DONE | cat >${TOP}/dev/${1}/${1}.c <<DONE | ||||
/* | /* | ||||
* Copyright (c) [year] [your name] | * Copyright (c) [year] [your name] | ||||
* All rights reserved. | |||||
* | * | ||||
* Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
* modification, are permitted provided that the following conditions | * modification, are permitted provided that the following conditions | ||||
* are met: | * are met: | ||||
* 1. Redistributions of source code must retain the above copyright | * 1. Redistributions of source code must retain the above copyright | ||||
* notice, this list of conditions and the following disclaimer. | * notice, this list of conditions and the following disclaimer. | ||||
* 2. Redistributions in binary form must reproduce the above copyright | * 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | * notice, this list of conditions and the following disclaimer in the | ||||
▲ Show 20 Lines • Show All 889 Lines • Show Last 20 Lines |