Skip to content

Commit

Permalink
perf: Use standard bee commands
Browse files Browse the repository at this point in the history
Luckily, perf uses standard build rules, so bee is able to do everything
be itself. This way, make flags can also be specified, and for example
parallel builds are also possible.

```
[…]
[BEE] => entering bee_build() ..
[BEE] make -j PREFIX=/usr EPREFIX=/usr BINDIR=/usr/bin SBINDIR=/usr/sbin LIBEXECDIR=/usr/libexec SYSCONFDIR=/etc SHAREDSTATEDIR=/var LOCALSTATEDIR=/var LIBDIR=/usr/lib INCLUDEDIR=/usr/include DATAROOTDIR=/usr/share DATADIR=/usr/share INFODIR=/usr/share/info LOCALEDIR=/usr/share/locale MANDIR=/usr/share/man DOCDIR=/usr/share/doc/perf
  BUILD:   Doing 'make -j8' parallel build

Auto-detecting system features:
...                         dwarf: [ on  ]
...                         glibc: [ on  ]
...                          gtk2: [ on  ]
...                      libaudit: [ OFF ]
...                        libbfd: [ OFF ]
...                        libelf: [ on  ]
...                       libnuma: [ on  ]
...        numa_num_possible_cpus: [ OFF ]
...                       libperl: [ on  ]
...                     libpython: [ on  ]
...                      libslang: [ on  ]
...                     libunwind: [ OFF ]
...            libdw-dwarf-unwind: [ on  ]
...                          zlib: [ on  ]
...                          lzma: [ on  ]
...                     get_cpuid: [ on  ]
...                           bpf: [ on  ]
[…]
[BEE] => entering bee_install() ..
[BEE] make -j install PREFIX=/usr EPREFIX=/usr BINDIR=/usr/bin SBINDIR=/usr/sbin LIBEXECDIR=/usr/libexec SYSCONFDIR=/etc SHAREDSTATEDIR=/var LOCALSTATEDIR=/var LIBDIR=/usr/lib INCLUDEDIR=/usr/include DATAROOTDIR=/usr/share DATADIR=/usr/share INFODIR=/usr/share/info LOCALEDIR=/usr/share/locale MANDIR=/usr/share/man DOCDIR=/usr/share/doc/perf DESTDIR=/dev/shm/bee-root/perf/perf-4.4.52-0/image
```
  • Loading branch information
pmenzel committed Mar 21, 2017
1 parent 5b8d176 commit 9c932cd
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions perf.be0
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ mee_configure() {
cd ${S}/tools/perf
}

mee_build() {
echo "build $@"
make prefix=${PREFIX}
}

mee_install() {
echo "install $@"

make install prefix=${PREFIX} DESTDIR=${D}
}
#mee_build() {
# echo "build $@"
# make prefix=${PREFIX}
#}

#mee_install() {
# echo "install $@"
#
# make install prefix=${PREFIX} DESTDIR=${D}
#}

0 comments on commit 9c932cd

Please sign in to comment.