CodeLabs
  • Introduction
  • Cities
    • Cover
    • Summary
    • Introduction
      • Getting Started
      • Resources
      • Naming Convention
    • Caracol
      • Architecture
        • Intel
        • Operating Systems
        • Hardware Platform
        • Field Requirements
        • Software Development
        • Video Conference Station
          • Applications
          • Entertainment System
            • Services
              • Graphics
              • Video
              • Camera
              • Text To Speech
              • Speech To Text
              • Photography
              • Gaming
                • Super Nintendo Emulators
                • Super Nintendo ROMs
              • Twitter
              • Keyboard
              • Google Drive
              • WiFi
            • Modules
            • Tbd
        • Functionality
        • Bill Of Materials
        • Open Questions
        • Future
    • Chacmultun
      • JHD1313M1
        • Background
          • Inter-Integrated Circuit
          • Linux I2C Subsystem
        • Device Drivers
          • User Space Library UPM
          • User Space Library MRAA
          • User Space I2C Library
          • Kernel Space I2C Driver
    • Chicanna
      • OpenCV
        • Face Recognition
        • Web Streaming
    • Chichen Itza
      • Audio
        • Advanced Linux Sound Architecture
        • PortAudio
        • PyAudio
          • Record
          • Play
      • Text To Speech
        • eSpeak
          • pyttsx
        • VoiceRss
          • VoiceRss Text To Speech Python SDK
      • Speech To Text
        • CMU Sphinx
          • Sphinx Knowledge Base Tool
          • PocketSphinx
          • PyAudio
        • SpeechRecognition
    • Coba
      • Linux Kernel Source Code
        • Git Source Code Management
      • Linux Kernel Development Process
        • A Guide To The Linux Kernel Development Process
        • Challenge
      • Linux Kernel Compilation
      • Linux Kernel Modules
      • Linux Kernel Build System
        • Compilation Kernel Object
        • Compilation Built-In
      • Linux Kernel Patch
        • Patchset
      • Linux Kernel Developer
      • Learn More
    • Dos Pilas
    • Dzibilchaltun
    • Edzna
      • MQ Telemetry Transport
        • MQTT Broker
      • Home Assistant
        • Setup
        • Default Configuration
        • Hello
      • Home Automation
        • Device
          • Light ESP8266
          • Intel Edison
        • Server
          • MQTT
            • Light
            • Sensor
            • Binary Sensor
            • Alarm
          • Dweet
          • Weather
          • Binary Sensor
          • Telegram
          • Camera
          • Automation
      • Shack Automation
        • Configuration Yaml
    • Ek Balam
      • Google Cloud Platform
        • Google API Keys
        • Google Application Default Credentials
      • Google Cloud Translation API
      • Google Cloud Vision API
      • Google Cloud Speech
    • Hochob
      • Introduction
      • Accounts
      • Areas
        • Naming Conventions
      • Digital Media Players
        • Chromecast
      • Keypads
      • Mobile Device
      • Amikoo
        • Architecture
          • Hardware Components
            • Intel® Edison Breakout Board
        • Amikoo
          • Setup
          • Git Repositories
          • Audio
          • Main Intel Edison
          • Main x86
        • Sandbox
          • Tbd
      • Server
        • Setup
          • Root
          • PulseAudio
        • Architecture
        • Media
        • Services
          • Automation
            • Home Assistant
              • Setup
          • Calendar
          • Camera
          • Communications
          • Games
            • Loteria Mexicana
            • Caras Y Gestos
            • Sopa De Letras
          • Image
          • Institution
          • Keypad
          • Messaging
          • Motion
          • Robot
          • Sound
            • Play
            • Speech Synthetizer
          • Stream
          • Usb
          • Survey
        • Applications
          • Captain Maya Lands
          • Southern Maya Highlands
          • Amikoo Maya Lands
          • Central Maya Lowlands
          • Northern Maya Lowlands
          • Console Maya Lands
          • Media Maya Lands
          • Calendar Maya Lands
          • Tradition Maya Lands
          • Techie Maya Lands
          • NohochTata Maya Lands
      • Stations
      • Architecture
      • Release Notes
        • v0.1
        • v0.2
    • Hormiguero
    • Kaminaljuyu
      • WRI Workshop
        • Environmental Protection Agency
      • Arquitecture
        • Bill Of Materials
      • Intel
    • Kanki
      • Device
      • Gateway
    • Kinich KaK Moo
    • Kohunlich
    • La Ruta Puuc
    • Mayapan
    • Mixco Viejo
    • Muyil
    • Palenque
    • Qumarkaj
      • Amazon
      • Amazon Echo
        • Lifx
        • IFTTT
      • Amazon Alexa
        • Alexa Skills Kit
          • Training: Developing Alexa Skills - Hello, Alexa!
          • Training: Alexa - A Free Introduction
          • Projects
            • Intel GDC Visitor Center
              • Cloudy
              • Geek
              • Trivia
              • Kit
            • Voice Control Intel Edison
        • Alexa Voice Service
          • Intel Edison
    • Seibal
    • Tabasqueno
    • Tikal
      • Mexican Red Cross
      • Emergency Medical Services
        • Prehospital Care Strategies
      • Intel
      • Bitalino
      • My Signals
      • Architecture
        • Objectives
    • Tulum
      • Introduction
      • Device
        • Development Board
        • Telegram Bot
        • Bootup
        • Text Editors
        • Setup
        • Main
        • IoT101 Inc
        • Mqtt Clients
        • Sensors
      • Server
        • Setup
        • Dashboard
        • Mqtt Broker
      • Challenge
    • Uxmal
    • Xcambo
    • Xpuhil
    • Xunantunich
    • Sandbox
      • Text To Speech
      • Face Recognition Web Streaming
      • Web Server Flask
      • Speech To Text
      • Image Webpage Flask
      • Audio Capture Playback
      • Image Capture OpenCV
    • Tbd
      • Tbd
      • Linux Kernel Architecture
      • Linux Kernel Device Drivers
      • Tbd
  • Gods
    • Acat
      • Node-RED
        • Installation
          • General
          • Base
          • Npm Packages
          • Node-RED Packages
        • Autostart
      • Projects
        • GPIO
        • MQTT
        • Intel GDC Visitor Center
      • Sandbox
    • Ah Puch
      • Recon Instruments
        • ReconJet
          • Get Started
        • ReconEngage
        • Uplink
        • Intel Developer Zone
          • Recon Dev Kit for Jet™
      • Bicycles
    • Akna
      • Hardware
        • Intel Edison
        • Sphero
        • Bluetooth Dongle
      • Software
        • Javascript
        • Cylon.js
          • Cylon.js Intel Edison
          • Cylon.js Intel Edison Sphero
            • Examples
        • Sphero Linux API
    • Alom
    • Bacab
      • Getting Started
        • Inventory
        • Accounts
        • Software
      • Proof Of Concepts
        • Doorbell
    • Bitol
      • Drone Software Development Environment
        • PX4
        • JMAVSim
        • Ardupilot
        • SITL Simulator
        • DroneKit
        • QGroundControl
        • MAVLink
        • OpenCV
        • Git Source Code Management
      • Drone Solution Architect
        • Companies
      • Dronecode Project
      • Base Drone Solution
        • Flight Controller Hardware
          • PixHawk
          • Intel® Aero Ready to Fly Drone
          • Emlid
          • Erle Brain
        • Flight Controller Operating System
        • Autopilot
          • Px4
            • Architecture
              • NuttX
              • DriverFramework
            • Shell
          • Ardupilot
          • Software In The Loop
            • jMAVSim
            • DroneKit SITL
        • Communications
          • Mavlink
            • PyMAVLink
        • Ground Control Station
          • QGroundControl
        • Developer APIs
      • Hybrid Drone Solution
      • Autonomous Drone Solution
      • Drone Solutions
        • Erle Robotics
        • Emlid
      • Training
        • Drone Solution Architect
          • Demos
            • Ka’an
            • Múuyal
            • lik’
            • Chak iik’
    • Chaac
    • Bolon Ts'akab
    • Buluc Chabtan
      • Challenge
    • Chaac Uayab Xoc
    • Cacoch
      • Background
        • Open Source
        • Do It Yourself Communities
      • The Project
        • History
        • Career Profile
        • Education Strategy
        • Courses
        • Infrastructure
Powered by GitBook
On this page
  • Linux Kernel Patchset
  • Git Status
  • Git Add ../HelloWorld/HelloWorld.c
  • Git Add ../HelloWorld/Makefile
  • Git Add ../HelloWorld/Kconfig
  • Git Add ../Makefile
  • Git Add ../Kconfig
  • Git Log
  • Git Send Email
  • Cover Letter
  1. Cities
  2. Coba
  3. Linux Kernel Patch

Patchset

Linux Kernel Patchset

user@workstation:~/linux$ git branch -a
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/master
user@workstation:~/linux$ git checkout -b multiple origin/master
Branch multiple set up to track remote branch master from origin.
Switched to a new branch 'multiple'
user@workstation:~/linux$
xe1gyq@server:~/linux$ git apply patches/0001-Drivers-Hello-World.patch
patches/0001-Drivers-Hello-World.patch:58: new blank line at EOF.
+
patches/0001-Drivers-Hello-World.patch:94: new blank line at EOF.
+
warning: 2 lines add whitespace errors.
xe1gyq@server:~/linux$

Git Status

user@workstation:~/linux$ git status
On branch multiple
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

    modified:   drivers/Kconfig
    modified:   drivers/Makefile

Untracked files:
  (use "git add <file>..." to include in what will be committed)

    drivers/helloworld/

no changes added to commit (use "git add" and/or "git commit -a")

Git Add ../HelloWorld/HelloWorld.c

user@workstation:~/linux$ git add drivers/helloworld/helloworld.c
user@workstation:~/linux$ git commit -s
Drivers: Hello World Source Code

Optimized Hello World Kernel Module

Signed-off-by: Abraham Arce <xe1gyq@gmail.com>

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch multiple
# Your branch is up-to-date with 'origin/master'.
#
# Changes to be committed:
#       new file:   drivers/helloworld/helloworld.c
#
# Changes not staged for commit:
#       modified:   drivers/Kconfig
#       modified:   drivers/Makefile
#
# Untracked files:
#       drivers/helloworld/Kconfig
#       drivers/helloworld/Makefile
#
[multiple 761be25] Drivers: Hello World Source Code
 1 file changed, 23 insertions(+)
 create mode 100644 drivers/helloworld/helloworld.c

Git Add ../HelloWorld/Makefile

user@workstation:~/linux$ git add drivers/helloworld/Makefile
user@workstation:~/linux$ git commit -s
Drivers: Hello World Makefile   

Makefile for Optimized Hello World Kernel Module

Signed-off-by: Abraham Arce <xe1gyq@gmail.com>

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch multiple
# Your branch is ahead of 'origin/master' by 1 commit.
#   (use "git push" to publish your local commits)
#
# Changes to be committed:
#       new file:   drivers/helloworld/Makefile
#
# Changes not staged for commit:
#       modified:   drivers/Kconfig
#       modified:   drivers/Makefile
#
# Untracked files:
#       drivers/helloworld/Kconfig
#
[multiple b0c1d51] Drivers: Hello World Makefile
 1 file changed, 1 insertion(+)
 create mode 100644 drivers/helloworld/Makefile

Git Add ../HelloWorld/Kconfig

user@workstation:~/linux$ git add drivers/helloworld/Kconfig
user@workstation:~/linux$ git commit -s
Drivers: Hello World Kconfig

Kconfig for Optimized Hello World Kernel Module

Signed-off-by: Abraham Arce <xe1gyq@gmail.com>

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# Date:      Wed May 31 18:49:24 2017 -0500
#
# On branch multiple
# Your branch is ahead of 'origin/master' by 3 commits.
#   (use "git push" to publish your local commits)
#
# Changes to be committed:
#       new file:   drivers/helloworld/Kconfig
#
# Changes not staged for commit:
#       modified:   drivers/Kconfig
#       modified:   drivers/Makefile
#
[multiple 82f295b] Drivers: Hello World Kconfig
 1 file changed, 9 insertions(+)
 create mode 100644 drivers/helloworld/Kconfig

Git Add ../Makefile

user@workstation:~/linux$ git add drivers/Makefile
user@workstation:~/linux$ git commit -s
Drivers: Hello World Compilation

Enable Hello World Kernel Module Compilation

Signed-off-by: Abraham Arce <xe1gyq@gmail.com>

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# Date:      Wed May 31 18:51:39 2017 -0500
#
# On branch multiple
# Your branch is ahead of 'origin/master' by 4 commits.
#   (use "git push" to publish your local commits)
#
# Changes to be committed:
#       modified:   drivers/Makefile
#
# Changes not staged for commit:
#       modified:   drivers/Kconfig
#
[multiple 7d44f56] Drivers: Hello World Compilation
 1 file changed, 1 insertion(+)

Git Add ../Kconfig

user@workstation:~/linux$ git add drivers/Kconfig
user@workstation:~/linux$ git commit -s
Drivers: Hello World Kernel Configuration

Enable Hello World Kernel Module Compilation

Signed-off-by: Abraham Arce <xe1gyq@gmail.com>

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# Date:      Wed May 31 18:54:22 2017 -0500
#
# On branch multiple
# Your branch is ahead of 'origin/master' by 5 commits.
#   (use "git push" to publish your local commits)
#
# Changes to be committed:
#       modified:   drivers/Kconfig
#
[multiple 4ee00c8] Drivers: Hello World Kernel Configuration
 1 file changed, 2 insertions(+)

Git Log

user@workstation:~/linux$ git log --pretty=oneline
52441d5113d84f51d9090a94fe3be1df41411323 Drivers: Hello World Kernel Configuration
1586aa8cbd5042cdefc408f13866e9b28b2e15f7 Drivers: Hello World Compilation
82f295bd8ccaf058b24eed8f3c6978bc2c28a349 Drivers: Hello World Kconfig
b0c1d51959126aadd8e238698ef2d65252ed277c Drivers: Hello World Makefile
761be2516193f7719c9d3b5112452992a8c0690f Drivers: Hello World Source Code
d602fb6844940b23afb64d4bf70bb963c15571ee Merge branch 'overlayfs-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs

Git Send Email

root@workstation:~# apt install git-email
user@workstation:~/linux$ nano ~/.gitconfig
[user]
        name = Abraham Arce
        email = email@gmail.com
[push]
        default = simple
[sendemail]
        smtpEncryption = tls
        smtpServer = smtp.gmail.com
        smtpUser = email@gmail.com
        smtpServerPort = 587
user@workstation:~/linux$ git format-patch -M origin/master
0001-Drivers-Hello-World.patch
user@workstation:~/linux$ git format-patch -M origin/master -o patches/
patches/0001-Drivers-Hello-World-Source-Code.patch
patches/0002-Drivers-Hello-World-Makefile.patch
patches/0003-Drivers-Hello-World-Kconfig.patch
patches/0004-Drivers-Hello-World-Compilation.patch
patches/0005-Drivers-Hello-World-Kernel-Configuration.patch

Cover Letter

xe1gyq@server:~/linux$ rm patches/*
xe1gyq@server:~/linux$ git format-patch --cover-letter -M origin/master -o patches/
patches/0000-cover-letter.patch
patches/0001-Drivers-Hello-World-Source-Code.patch
patches/0002-Drivers-Hello-World-Makefile.patch
patches/0003-Drivers-Hello-World-Kconfig.patch
patches/0004-Drivers-Hello-World-Compilation.patch
patches/0005-Drivers-Hello-World-Kernel-Configuration.patch
xe1gyq@server:~/linux$
From 52441d5113d84f51d9090a94fe3be1df41411323 Mon Sep 17 00:00:00 2001
From: Abraham Arce <xe1gyq@gmail.com>
Date: Wed, 31 May 2017 19:01:24 -0500
Subject: [PATCH 0/5] *** SUBJECT HERE ***

*** BLURB HERE ***

Abraham Arce (5):
  Drivers: Hello World Source Code
  Drivers: Hello World Makefile
  Drivers: Hello World Kconfig
  Drivers: Hello World Compilation
  Drivers: Hello World Kernel Configuration

 drivers/Kconfig                 |  2 ++
 drivers/Makefile                |  1 +
 drivers/helloworld/Kconfig      |  9 +++++++++
 drivers/helloworld/Makefile     |  1 +
 drivers/helloworld/helloworld.c | 23 +++++++++++++++++++++++
 5 files changed, 36 insertions(+)
 create mode 100644 drivers/helloworld/Kconfig
 create mode 100644 drivers/helloworld/Makefile
 create mode 100644 drivers/helloworld/helloworld.c

-- 
2.1.4
PreviousLinux Kernel PatchNextLinux Kernel Developer

Last updated 7 years ago

documentation Git Send Email