Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Luis Gerhorst
linux
Commits
7d34cbd6
Commit
7d34cbd6
authored
6 years ago
by
Luis Gerhorst
Browse files
Options
Downloads
Patches
Plain Diff
Seperate Makefile and Kbuild
parent
2e90c437
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
arch/arm/measuremore/Kbuild
+13
-0
13 additions, 0 deletions
arch/arm/measuremore/Kbuild
arch/arm/measuremore/Makefile
+5
-15
5 additions, 15 deletions
arch/arm/measuremore/Makefile
arch/arm/measuremore/trigger.c
+2
-2
2 additions, 2 deletions
arch/arm/measuremore/trigger.c
with
20 additions
and
17 deletions
arch/arm/measuremore/Kbuild
0 → 100644
+
13
−
0
View file @
7d34cbd6
ccflags-$(CONFIG_MEASUREMORE) := -std=gnu99 -Wno-declaration-after-statement
obj-$(CONFIG_MEASUREMORE) += measuremore.o
measuremore-objs += trigger.o measure.o pmccntr_timestamp.o
$(obj)/trigger.o: $(obj)/kernel_memo_git_commit.h $(obj)/kernel_memo_git_status.h
targets += $(obj)/kernel_memo_git_commit.h $(obj)/kernel_memo_git_status.h
$(obj)/kernel_memo_git_commit.h: .git/HEAD .git/index
echo "const char *kernel_memo_git_commit = \"$(shell git rev-parse HEAD)\";" > $@
$(obj)/kernel_memo_git_status.h: FORCE
echo "const char *kernel_memo_git_status = \"$(shell git status --porcelain)\";" > $@
This diff is collapsed.
Click to expand it.
arch/arm/measuremore/Makefile
+
5
−
15
View file @
7d34cbd6
ccflags-$(CONFIG_MEASUREMORE)
:=
-std
=
gnu99
-Wno-declaration-after-statement
obj-$(CONFIG_MEASUREMORE)
+=
measuremore.o
measuremore-objs
+=
trigger.o measure.o pmccntr_timestamp.o
# Assumes we are in arch/arm/measuremore.
# Assumes we are in arch/arm/measuremore.
KERNEL
=
../../..
KDIR
=
../../..
all
:
kernel_memo_git_commit.c kernel_memo_git_status.c
$(
MAKE
)
ARCH
=
arm
CROSS_COMPILE
=
/usr/bin/arm-linux-gnueabi-
-j
4 zImage
-C
$(
KERNEL
)
kernel_memo_git_commit.c
:
$(KERNEL)/.git/HEAD $(KERNEL)/.git/index
echo
"const char *kernel_memo_git_commit =
\"
$(
shell cd
$(
KERNEL
)
&& git rev-parse HEAD
)
\"
;"
>
$@
kernel_memo_git_status.c
:
$(KERNEL)/.git/HEAD $(KERNEL)/.git/index
all
:
echo
"const char *kernel_memo_git_status =
\"
$(
shell cd
$(
KERNEL
)
&& git status --porcelain
)
\"
;"
>
$@
$(
MAKE
)
ARCH
=
arm
CROSS_COMPILE
=
/usr/bin/arm-linux-gnueabi-
-j
4 zImage
-C
$(
KDIR
)
clean
:
clean
:
rm
-f
kernel_memo_git_commit.
c
kernel_memo_git_status.
c
*
.o .
*
.o.cmd
rm
-f
kernel_memo_git_commit.
h
kernel_memo_git_status.
h
*
.o .
*
.o.cmd
romboot
:
romboot
:
board-romboot
board-romboot
flash_kernel
:
flash_kernel
:
./scripts/
flash
_
kernel
board-
flash
-
kernel
$(
KDIR
)
reset
:
reset
:
board-reset
board-reset
...
...
This diff is collapsed.
Click to expand it.
arch/arm/measuremore/trigger.c
+
2
−
2
View file @
7d34cbd6
...
@@ -18,8 +18,8 @@
...
@@ -18,8 +18,8 @@
#include
"pmccntr_timestamp.h"
#include
"pmccntr_timestamp.h"
#include
<linux/measuremore.h>
#include
<linux/measuremore.h>
#include
"kernel_memo_git_commit.
c
"
#include
"kernel_memo_git_commit.
h
"
#include
"kernel_memo_git_status.
c
"
#include
"kernel_memo_git_status.
h
"
#define pr_here() pr_err("%s:%d %s called\n", __FILE__, __LINE__, __func__)
#define pr_here() pr_err("%s:%d %s called\n", __FILE__, __LINE__, __func__)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment