Update readme & fix line endings
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Christoph Honal 2020-02-14 12:22:09 +01:00
parent 5553fdb38c
commit 2785ab16ae
3 changed files with 20 additions and 13 deletions

2
.dockerignore Normal file
View File

@ -0,0 +1,2 @@
.drone.yml
README.md

5
README.md Normal file
View File

@ -0,0 +1,5 @@
# hello-ci
[![Build Status](https://drone.chrz.de/api/badges/chonal/hello-ci/status.svg)](https://drone.chrz.de/chonal/hello-ci)
Demo project for the Raspberry Pi cross compoler, see https://chrz.de/2020/02/14/raspberry-pi-cross-compilation-using-docker/.

View File

@ -1,14 +1,14 @@
#include <iostream> #include <iostream>
#include <sys/utsname.h> #include <sys/utsname.h>
using namespace std; using namespace std;
struct utsname unameData; struct utsname unameData;
int main() int main()
{ {
cout << "Hello from binary!" << endl; cout << "Hello from binary!" << endl;
uname(&unameData); uname(&unameData);
printf("Running on %s, %s\n", unameData.sysname, unameData.machine); printf("Running on %s, %s\n", unameData.sysname, unameData.machine);
return 0; return 0;
} }